diff --git a/client/structs/structs.generated.go b/client/structs/structs.generated.go new file mode 100644 index 000000000000..b5ebf3515e58 --- /dev/null +++ b/client/structs/structs.generated.go @@ -0,0 +1,8997 @@ +// Code generated by codecgen - DO NOT EDIT. + +package structs + +import ( + "errors" + pkg1_stats "github.com/hashicorp/nomad/client/stats" + pkg4_structs "github.com/hashicorp/nomad/nomad/structs" + pkg2_device "github.com/hashicorp/nomad/plugins/device" + pkg3_structs "github.com/hashicorp/nomad/plugins/shared/structs" + codec1978 "github.com/ugorji/go/codec" + "runtime" + "strconv" + "time" +) + +const ( + // ----- content types ---- + codecSelferCcUTF8102 = 1 + codecSelferCcRAW102 = 255 + // ----- value types used ---- + codecSelferValueTypeArray102 = 10 + codecSelferValueTypeMap102 = 9 + codecSelferValueTypeString102 = 6 + codecSelferValueTypeInt102 = 2 + codecSelferValueTypeUint102 = 3 + codecSelferValueTypeFloat102 = 4 + codecSelferBitsize102 = uint8(32 << (^uint(0) >> 63)) +) + +var ( + errCodecSelferOnlyMapOrArrayEncodeToStruct102 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer102 struct{} + +func init() { + if codec1978.GenVersion != 10 { + _, file, _, _ := runtime.Caller(0) + panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) + } + if false { + var _ byte = 0 // reference the types, but skip this branch at build/run time + var v0 pkg1_stats.HostStats + var v1 pkg4_structs.QueryMeta + var v2 pkg2_device.DeviceGroupStats + var v3 pkg3_structs.StatValue + var v4 time.Time + _, _, _, _, _ = v0, v1, v2, v3, v4 + } +} + +func (x *RpcError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Message)) + } + } + } + var yyn6 bool + if x.Code == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + yy7 := *x.Code + if false { + } else { + r.EncodeInt(int64(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Code`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Code == nil { + r.EncodeNil() + } else { + yy9 := *x.Code + if false { + } else { + r.EncodeInt(int64(yy9)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RpcError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *RpcError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Code": + if r.TryDecodeAsNil() { + if true && x.Code != nil { + x.Code = nil + } + } else { + if x.Code == nil { + x.Code = new(int64) + } + + if false { + } else { + *x.Code = (int64)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RpcError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Code != nil { + x.Code = nil + } + } else { + if x.Code == nil { + x.Code = new(int64) + } + + if false { + } else { + *x.Code = (int64)(r.DecodeInt64()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ClientStatsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.HostStats == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.HostStats == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.HostStats)); yyxt4 != nil { + z.EncExtension(x.HostStats, yyxt4) + } else { + z.EncFallback(x.HostStats) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `HostStats`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.HostStats == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HostStats)); yyxt5 != nil { + z.EncExtension(x.HostStats, yyxt5) + } else { + z.EncFallback(x.HostStats) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ClientStatsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *ClientStatsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "HostStats": + if r.TryDecodeAsNil() { + if true && x.HostStats != nil { + x.HostStats = nil + } + } else { + if x.HostStats == nil { + x.HostStats = new(pkg1_stats.HostStats) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HostStats)); yyxt5 != nil { + z.DecExtension(x.HostStats, yyxt5) + } else { + z.DecFallback(x.HostStats, false) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ClientStatsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.HostStats != nil { + x.HostStats = nil + } + } else { + if x.HostStats == nil { + x.HostStats = new(pkg1_stats.HostStats) + } + + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.HostStats)); yyxt12 != nil { + z.DecExtension(x.HostStats, yyxt12) + } else { + z.DecFallback(x.HostStats, false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocFileInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [6]bool{ // should field at this index be written? + true, // Name + true, // IsDir + true, // Size + true, // FileMode + true, // ModTime + x.ContentType != "", // ContentType + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsDir)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsDir\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `IsDir`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsDir)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Size)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Size\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Size`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Size)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FileMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.FileMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FileMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `FileMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FileMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.FileMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModTime) + } else if yyxt16 := z.Extension(z.I2Rtid(x.ModTime)); yyxt16 != nil { + z.EncExtension(x.ModTime, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModTime) + } else { + z.EncFallback(x.ModTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ModTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModTime) + } else if yyxt17 := z.Extension(z.I2Rtid(x.ModTime)); yyxt17 != nil { + z.EncExtension(x.ModTime, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModTime) + } else { + z.EncFallback(x.ModTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ContentType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ContentType)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ContentType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ContentType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ContentType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ContentType)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocFileInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocFileInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "IsDir": + if r.TryDecodeAsNil() { + x.IsDir = false + } else { + x.IsDir = (bool)(r.DecodeBool()) + } + case "Size": + if r.TryDecodeAsNil() { + x.Size = 0 + } else { + x.Size = (int64)(r.DecodeInt64()) + } + case "FileMode": + if r.TryDecodeAsNil() { + x.FileMode = "" + } else { + x.FileMode = (string)(r.DecodeString()) + } + case "ModTime": + if r.TryDecodeAsNil() { + x.ModTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModTime = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.ModTime)); yyxt9 != nil { + z.DecExtension(x.ModTime, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModTime) + } else { + z.DecFallback(&x.ModTime, false) + } + } + case "ContentType": + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocFileInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsDir = false + } else { + x.IsDir = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Size = 0 + } else { + x.Size = (int64)(r.DecodeInt64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FileMode = "" + } else { + x.FileMode = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModTime = r.DecodeTime() + } else if yyxt17 := z.Extension(z.I2Rtid(x.ModTime)); yyxt17 != nil { + z.DecExtension(x.ModTime, yyxt17) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModTime) + } else { + z.DecFallback(&x.ModTime, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Files == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocFileInfo(([]*AllocFileInfo)(x.Files), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Files\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Files`) + } + r.WriteMapElemValue() + if x.Files == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocFileInfo(([]*AllocFileInfo)(x.Files), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Files": + if r.TryDecodeAsNil() { + x.Files = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocFileInfo((*[]*AllocFileInfo)(&x.Files), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Files = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocFileInfo((*[]*AllocFileInfo)(&x.Files), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsStatRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsStatRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsStatRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsStatRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsStatResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Info == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Info == nil { + r.EncodeNil() + } else { + x.Info.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Info\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Info`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Info == nil { + r.EncodeNil() + } else { + x.Info.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsStatResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsStatResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Info": + if r.TryDecodeAsNil() { + if true && x.Info != nil { + x.Info = nil + } + } else { + if x.Info == nil { + x.Info = new(AllocFileInfo) + } + + x.Info.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsStatResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Info != nil { + x.Info = nil + } + } else { + if x.Info == nil { + x.Info = new(AllocFileInfo) + } + + x.Info.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsStreamRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Offset\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Offset`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Origin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Origin`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlainText\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Limit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Limit`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Follow\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Follow`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { + z.EncExtension(x.MaxQueryTime, yyxt34) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { + z.EncExtension(x.MaxQueryTime, yyxt35) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsStreamRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsStreamRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Offset": + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + case "Origin": + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + case "PlainText": + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + case "Limit": + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int64)(r.DecodeInt64()) + } + case "Follow": + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil { + z.DecExtension(x.MaxQueryTime, yyxt15) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsStreamRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int64)(r.DecodeInt64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt32 != nil { + z.DecExtension(x.MaxQueryTime, yyxt32) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsLogsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LogType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LogType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LogType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Offset\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Offset`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Origin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Origin`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlainText\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Follow\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Follow`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { + z.EncExtension(x.MaxQueryTime, yyxt34) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { + z.EncExtension(x.MaxQueryTime, yyxt35) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsLogsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsLogsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "LogType": + if r.TryDecodeAsNil() { + x.LogType = "" + } else { + x.LogType = (string)(r.DecodeString()) + } + case "Offset": + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + case "Origin": + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + case "PlainText": + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + case "Follow": + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil { + z.DecExtension(x.MaxQueryTime, yyxt15) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsLogsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LogType = "" + } else { + x.LogType = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt32 != nil { + z.DecExtension(x.MaxQueryTime, yyxt32) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamErrWrapper) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Error == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Error`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamErrWrapper) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *StreamErrWrapper) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Error": + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RpcError) + } + + x.Error.CodecDecodeSelf(d) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamErrWrapper) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RpcError) + } + + x.Error.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocExecRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Tty)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tty\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Tty`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Tty)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Cmd == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Cmd, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cmd\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Cmd`) + } + r.WriteMapElemValue() + if x.Cmd == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Cmd, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { + z.EncExtension(x.MaxQueryTime, yyxt25) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.EncExtension(x.MaxQueryTime, yyxt26) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocExecRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocExecRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Tty": + if r.TryDecodeAsNil() { + x.Tty = false + } else { + x.Tty = (bool)(r.DecodeBool()) + } + case "Cmd": + if r.TryDecodeAsNil() { + x.Cmd = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Cmd, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.DecExtension(x.MaxQueryTime, yyxt13) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocExecRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tty = false + } else { + x.Tty = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cmd = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Cmd, d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStatsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStatsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocStatsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStatsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStatsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Stats == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Stats == nil { + r.EncodeNil() + } else { + x.Stats.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Stats`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Stats == nil { + r.EncodeNil() + } else { + x.Stats.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStatsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocStatsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Stats": + if r.TryDecodeAsNil() { + if true && x.Stats != nil { + x.Stats = nil + } + } else { + if x.Stats == nil { + x.Stats = new(AllocResourceUsage) + } + + x.Stats.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStatsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Stats != nil { + x.Stats = nil + } + } else { + if x.Stats == nil { + x.Stats = new(AllocResourceUsage) + } + + x.Stats.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *MemoryStats) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.RSS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RSS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `RSS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.RSS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Cache)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cache\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Cache`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Cache)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Swap)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Swap\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Swap`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Swap)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Usage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Usage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Usage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Usage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MaxUsage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxUsage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MaxUsage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.KernelUsage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KernelUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KernelUsage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.KernelUsage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.KernelMaxUsage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KernelMaxUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KernelMaxUsage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.KernelMaxUsage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Measured, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Measured\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Measured`) + } + r.WriteMapElemValue() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Measured, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MemoryStats) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *MemoryStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RSS": + if r.TryDecodeAsNil() { + x.RSS = 0 + } else { + x.RSS = (uint64)(r.DecodeUint64()) + } + case "Cache": + if r.TryDecodeAsNil() { + x.Cache = 0 + } else { + x.Cache = (uint64)(r.DecodeUint64()) + } + case "Swap": + if r.TryDecodeAsNil() { + x.Swap = 0 + } else { + x.Swap = (uint64)(r.DecodeUint64()) + } + case "Usage": + if r.TryDecodeAsNil() { + x.Usage = 0 + } else { + x.Usage = (uint64)(r.DecodeUint64()) + } + case "MaxUsage": + if r.TryDecodeAsNil() { + x.MaxUsage = 0 + } else { + x.MaxUsage = (uint64)(r.DecodeUint64()) + } + case "KernelUsage": + if r.TryDecodeAsNil() { + x.KernelUsage = 0 + } else { + x.KernelUsage = (uint64)(r.DecodeUint64()) + } + case "KernelMaxUsage": + if r.TryDecodeAsNil() { + x.KernelMaxUsage = 0 + } else { + x.KernelMaxUsage = (uint64)(r.DecodeUint64()) + } + case "Measured": + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Measured, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MemoryStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RSS = 0 + } else { + x.RSS = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cache = 0 + } else { + x.Cache = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Swap = 0 + } else { + x.Swap = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Usage = 0 + } else { + x.Usage = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxUsage = 0 + } else { + x.MaxUsage = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KernelUsage = 0 + } else { + x.KernelUsage = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KernelMaxUsage = 0 + } else { + x.KernelMaxUsage = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Measured, d) + } + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *CpuStats) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.SystemMode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SystemMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `SystemMode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.SystemMode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.UserMode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UserMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `UserMode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.UserMode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.TotalTicks)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TotalTicks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `TotalTicks`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.TotalTicks)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledPeriods)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ThrottledPeriods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ThrottledPeriods`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledPeriods)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ThrottledTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ThrottledTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.Percent)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Percent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Percent`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.Percent)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Measured, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Measured\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Measured`) + } + r.WriteMapElemValue() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Measured, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CpuStats) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *CpuStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SystemMode": + if r.TryDecodeAsNil() { + x.SystemMode = 0 + } else { + x.SystemMode = (float64)(r.DecodeFloat64()) + } + case "UserMode": + if r.TryDecodeAsNil() { + x.UserMode = 0 + } else { + x.UserMode = (float64)(r.DecodeFloat64()) + } + case "TotalTicks": + if r.TryDecodeAsNil() { + x.TotalTicks = 0 + } else { + x.TotalTicks = (float64)(r.DecodeFloat64()) + } + case "ThrottledPeriods": + if r.TryDecodeAsNil() { + x.ThrottledPeriods = 0 + } else { + x.ThrottledPeriods = (uint64)(r.DecodeUint64()) + } + case "ThrottledTime": + if r.TryDecodeAsNil() { + x.ThrottledTime = 0 + } else { + x.ThrottledTime = (uint64)(r.DecodeUint64()) + } + case "Percent": + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (float64)(r.DecodeFloat64()) + } + case "Measured": + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Measured, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CpuStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SystemMode = 0 + } else { + x.SystemMode = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UserMode = 0 + } else { + x.UserMode = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TotalTicks = 0 + } else { + x.TotalTicks = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ThrottledPeriods = 0 + } else { + x.ThrottledPeriods = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ThrottledTime = 0 + } else { + x.ThrottledTime = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Measured, d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.MemoryStats == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MemoryStats == nil { + r.EncodeNil() + } else { + x.MemoryStats.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MemoryStats`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.MemoryStats == nil { + r.EncodeNil() + } else { + x.MemoryStats.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.CpuStats == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.CpuStats == nil { + r.EncodeNil() + } else { + x.CpuStats.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `CpuStats`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.CpuStats == nil { + r.EncodeNil() + } else { + x.CpuStats.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeviceStats == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtodevice_DeviceGroupStats(([]*pkg2_device.DeviceGroupStats)(x.DeviceStats), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeviceStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `DeviceStats`) + } + r.WriteMapElemValue() + if x.DeviceStats == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtodevice_DeviceGroupStats(([]*pkg2_device.DeviceGroupStats)(x.DeviceStats), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *ResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryStats": + if r.TryDecodeAsNil() { + if true && x.MemoryStats != nil { + x.MemoryStats = nil + } + } else { + if x.MemoryStats == nil { + x.MemoryStats = new(MemoryStats) + } + + x.MemoryStats.CodecDecodeSelf(d) + } + case "CpuStats": + if r.TryDecodeAsNil() { + if true && x.CpuStats != nil { + x.CpuStats = nil + } + } else { + if x.CpuStats == nil { + x.CpuStats = new(CpuStats) + } + + x.CpuStats.CodecDecodeSelf(d) + } + case "DeviceStats": + if r.TryDecodeAsNil() { + x.DeviceStats = nil + } else { + if false { + } else { + h.decSlicePtrtodevice_DeviceGroupStats((*[]*pkg2_device.DeviceGroupStats)(&x.DeviceStats), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MemoryStats != nil { + x.MemoryStats = nil + } + } else { + if x.MemoryStats == nil { + x.MemoryStats = new(MemoryStats) + } + + x.MemoryStats.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CpuStats != nil { + x.CpuStats = nil + } + } else { + if x.CpuStats == nil { + x.CpuStats = new(CpuStats) + } + + x.CpuStats.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeviceStats = nil + } else { + if false { + } else { + h.decSlicePtrtodevice_DeviceGroupStats((*[]*pkg2_device.DeviceGroupStats)(&x.DeviceStats), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.ResourceUsage == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourceUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ResourceUsage`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Pids == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResourceUsage((map[string]*ResourceUsage)(x.Pids), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pids\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Pids`) + } + r.WriteMapElemValue() + if x.Pids == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResourceUsage((map[string]*ResourceUsage)(x.Pids), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *TaskResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ResourceUsage": + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + case "Pids": + if r.TryDecodeAsNil() { + x.Pids = nil + } else { + if false { + } else { + h.decMapstringPtrtoResourceUsage((*map[string]*ResourceUsage)(&x.Pids), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Pids = nil + } else { + if false { + } else { + h.decMapstringPtrtoResourceUsage((*map[string]*ResourceUsage)(&x.Pids), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.ResourceUsage == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourceUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ResourceUsage`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskResourceUsage((map[string]*TaskResourceUsage)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskResourceUsage((map[string]*TaskResourceUsage)(x.Tasks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ResourceUsage": + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskResourceUsage((*map[string]*TaskResourceUsage)(&x.Tasks), d) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskResourceUsage((*map[string]*TaskResourceUsage)(&x.Tasks), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_DriverInfo((map[string]*pkg4_structs.DriverInfo)(x.Drivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Drivers`) + } + r.WriteMapElemValue() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_DriverInfo((map[string]*pkg4_structs.DriverInfo)(x.Drivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Drivers": + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_DriverInfo((*map[string]*pkg4_structs.DriverInfo)(&x.Drivers), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_DriverInfo((*map[string]*pkg4_structs.DriverInfo)(&x.Drivers), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckIntervalRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckIntervalRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckIntervalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckIntervalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckIntervalResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Eligible)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eligible\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Eligible`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Eligible)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Period)); yyxt7 != nil { + z.EncExtension(x.Period, yyxt7) + } else { + r.EncodeInt(int64(x.Period)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Period\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Period`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Period)); yyxt8 != nil { + z.EncExtension(x.Period, yyxt8) + } else { + r.EncodeInt(int64(x.Period)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckIntervalResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckIntervalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eligible": + if r.TryDecodeAsNil() { + x.Eligible = false + } else { + x.Eligible = (bool)(r.DecodeBool()) + } + case "Period": + if r.TryDecodeAsNil() { + x.Period = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Period)); yyxt6 != nil { + z.DecExtension(x.Period, yyxt6) + } else { + x.Period = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckIntervalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Eligible = false + } else { + x.Eligible = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Period = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Period)); yyxt10 != nil { + z.DecExtension(x.Period, yyxt10) + } else { + x.Period = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x codecSelfer102) encSlicePtrtoAllocFileInfo(v []*AllocFileInfo, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer102) decSlicePtrtoAllocFileInfo(v *[]*AllocFileInfo, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocFileInfo{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocFileInfo, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocFileInfo, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocFileInfo) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocFileInfo, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer102) encSlicePtrtodevice_DeviceGroupStats(v []*pkg2_device.DeviceGroupStats, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer102) decSlicePtrtodevice_DeviceGroupStats(v *[]*pkg2_device.DeviceGroupStats, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*pkg2_device.DeviceGroupStats{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*pkg2_device.DeviceGroupStats, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*pkg2_device.DeviceGroupStats, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(pkg2_device.DeviceGroupStats) + } + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + z.DecFallback(yyv1[yyj1], false) + } + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*pkg2_device.DeviceGroupStats, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer102) encMapstringPtrtoResourceUsage(v map[string]*ResourceUsage, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstringPtrtoResourceUsage(v *map[string]*ResourceUsage, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ResourceUsage, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ResourceUsage + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ResourceUsage) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer102) encMapstringPtrtoTaskResourceUsage(v map[string]*TaskResourceUsage, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstringPtrtoTaskResourceUsage(v *map[string]*TaskResourceUsage, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*TaskResourceUsage, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *TaskResourceUsage + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(TaskResourceUsage) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer102) encMapstringPtrtostructs_DriverInfo(v map[string]*pkg4_structs.DriverInfo, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { + z.EncExtension(yyv1, yyxt3) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstringPtrtostructs_DriverInfo(v *map[string]*pkg4_structs.DriverInfo, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*pkg4_structs.DriverInfo, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *pkg4_structs.DriverInfo + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(pkg4_structs.DriverInfo) + } + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil { + z.DecExtension(yymv1, yyxt4) + } else { + z.DecFallback(yymv1, false) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} diff --git a/command/agent/bindata_assetfs.go b/command/agent/bindata_assetfs.go index aaefeb374ea4..0816c1d5c04d 100644 --- a/command/agent/bindata_assetfs.go +++ b/command/agent/bindata_assetfs.go @@ -1,7 +1,7 @@ // Code generated by go-bindata. // sources: // ui/dist/assets/auto-import-fastboot-d41d8cd98f00b204e9800998ecf8427e.js -// ui/dist/assets/nomad-ui-01a2bba56ddad0865ef1cc9617172798.css +// ui/dist/assets/nomad-ui-2ffef17efbbc4361902d6cc1d42ce2b8.css // ui/dist/assets/nomad-ui-d6840652e28d16a3bb9c1052422e1bc6.js // ui/dist/assets/vendor-4b52c9afd07b1f7fae097395f2dbaf27.js // ui/dist/assets/vendor-74b43ac401038fb6d346e85abd3bb536.css @@ -108,22 +108,22 @@ func distAssetsAutoImportFastbootD41d8cd98f00b204e9800998ecf8427eJs() (*asset, e return a, nil } -var _distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798Css = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\xbd\x5d\x8f\x2b\x3b\x92\x20\xf6\x57\x72\x6e\xe3\x02\xa7\xfa\x48\xea\xd4\x67\x55\x49\xe8\x8b\x59\x0f\xb0\xf6\x02\x3b\x36\xe0\xd9\x01\x76\xd0\xb8\x0f\x29\x25\x55\xca\xb9\xa9\x4c\x4d\x66\xea\x54\x9d\xab\x2d\xc3\x4f\x6b\xf8\xd5\x3f\xc1\xcf\x7e\xf7\x83\xdf\xfc\x53\xf6\x97\x18\xc9\xaf\x64\x90\x11\x24\x53\x55\xa7\xdb\x53\xd3\xf7\x54\x25\xe3\x8b\x64\x30\x18\x24\x83\xc1\xbf\x3f\x9c\xb2\xa6\x65\x5d\xf2\xd3\x3f\xff\xa7\x7f\x3f\x7d\xfa\x69\x37\xdb\x5f\xcf\x17\xd6\x4c\x9b\xe2\xe5\xd4\x4d\x66\xd5\xf5\xbc\x67\xcd\xed\x9c\x35\x2f\x45\x25\x3e\x6e\xe7\xb3\x75\xc3\xce\xef\xfb\x3a\xff\x3e\x39\xd4\x39\xbb\x1d\xeb\xaa\x9b\xbe\x32\x5e\xb8\x4a\xd3\xf7\xac\xe9\x8a\x43\xc9\x26\x59\x5b\xe4\x6c\x72\x2c\x5e\xae\x0d\x9b\x1c\xeb\xba\x63\xcd\xe4\xc4\xb2\xbc\xff\xe7\xa5\xa9\xaf\x97\xc9\xa9\x99\xb4\xec\xd0\x15\x75\x75\xcb\x8b\xf6\x52\x66\xdf\xb7\xfb\xb2\x3e\xfc\xf6\x9e\x5d\xf3\xa2\x9e\xb0\xf3\x9e\xe5\x93\xe2\xfc\x32\xa9\xf7\xff\xca\x0e\xdd\xe4\x5b\x91\xb3\xfa\x76\xce\xde\xa6\xaf\x45\xde\x9d\xb6\xf3\x34\xfd\xf9\xbd\x97\x61\x72\x69\xd8\x6d\x9f\x1d\x7e\xeb\xe9\x56\xf9\xf4\x50\x97\x75\xb3\xfd\xc3\x71\xdd\xff\x08\x51\x7b\x08\xf9\x39\xcd\xfa\x9f\xf7\xd9\xa1\xae\x3a\x56\x75\xc9\xa5\x11\x04\x5e\xeb\x26\x9f\xbe\x36\xd9\x65\x5b\xd5\xcd\x39\x2b\xdf\xb3\xa4\xed\x9a\xba\x7a\xe9\x4b\x13\x5e\x57\x41\xe1\x70\x6d\x1a\x56\x75\xff\xd0\xff\xf1\x2e\x41\xba\x6c\x5f\xb2\xa4\x3b\x29\x26\xcb\x4d\xff\xf3\x3e\xdb\x5f\xbb\xae\xae\x26\xbd\x0c\xb7\xb2\xa8\xd8\xf4\xc4\x54\x33\xea\xc2\xec\x76\xb8\x36\x6d\xdd\x6c\x2f\x75\x51\x75\xac\x51\x05\xed\xec\x94\xb5\xd3\x2c\xcf\xeb\xaa\x4d\xe4\xb7\x59\xd1\x4e\x4f\xf5\x37\xd6\xb0\x7c\xe2\x01\xdb\x72\x98\xc9\xec\x58\xb0\x32\x07\xe5\x7d\xad\x9b\xba\x44\xe9\x05\xa1\x23\xc8\x16\xd5\xe5\xda\xc5\x52\xe5\xc0\x11\x44\x5b\x56\xb2\x43\x97\x88\x7f\x62\x89\x03\x24\xc1\xe4\xf6\xfb\xb4\xa8\x72\xf6\xb6\x5d\xbc\x1b\xf5\xef\xd8\x5b\xaf\xec\x75\x57\x1c\x8b\x43\xd6\xeb\x63\x92\x6d\xab\xba\xfb\x22\x61\x1e\x26\xd9\xac\xcb\x5e\x24\x89\x1e\x7a\x9a\xb3\x43\xdd\x70\xd0\xed\xb5\xca\x59\xd3\x77\xad\x50\xb4\xfe\x3f\xbf\xcc\x7a\xdd\x6d\xa6\xdf\x0a\xf6\x3a\x39\x75\xe7\xf2\xa6\x7a\x3d\x4d\x7f\xde\x19\xca\xab\xc6\x5b\xc9\x8e\x9d\x1a\x66\xfd\xef\x6a\x94\xf5\xd2\x65\x6d\x5b\x1f\x8a\xac\x2b\xbe\x31\x05\xd2\xd5\x97\xed\x74\xf6\xb8\x66\xe7\xf7\x3f\xfd\xf1\xef\x92\xfd\xb5\x3c\x67\xb3\xa2\x4e\xbe\xa5\xb3\xcd\x6c\x9e\xfc\x97\xe4\x1f\xff\xc3\x7f\x4a\xfe\x63\x71\x60\x55\xcb\x92\xff\x92\xbc\x14\xdd\xe9\xba\x9f\x1d\xea\xf3\x9f\xfe\xf5\xa5\x3b\x9d\xdb\x3f\x71\x8c\xe4\x8f\x7f\xfa\xfb\xdf\xd8\xf7\x63\x93\x9d\x59\x9b\xb4\x97\xa2\xfa\x77\x7c\xf8\xdc\x8e\x4d\x7d\xbe\x75\x4d\x56\xb5\xc7\xba\x39\x6f\x9b\xba\xcb\x3a\xf6\x25\x7d\x78\xef\x6a\xf7\xf3\x72\xfd\x9c\xb3\x97\x87\x77\x2e\xc9\xb9\xa8\x8a\x86\xb5\xac\x9b\x1d\xda\xb6\x17\x27\x9d\x2d\x22\xc4\x81\x68\x7f\xfc\x13\xb7\x02\xff\x76\xad\x3b\xc6\x9b\x73\x92\xe7\x93\xbc\x9c\xe4\xdd\x84\xf7\x76\xcb\x3a\x65\x56\x4e\xf3\xc9\x69\x31\x39\x2d\x27\xa7\xd5\xe4\xb4\x9e\x9c\x36\xbd\x4d\xe9\x1b\x7c\x52\xf0\x6a\x4d\x4a\xf6\xc2\xaa\x7c\x52\x16\x93\xba\x9c\x5c\xfa\x81\x3c\xe9\xfb\x2f\x6b\x58\x36\xb9\x96\xb2\x3d\xb7\xe9\xee\x92\xe5\x79\x51\xbd\x6c\xd3\x77\x87\xa4\x30\x70\x6d\xf1\x3b\x13\xdd\x67\xdb\xbb\x6b\x79\x2b\x8b\xb6\x9b\xb6\xdd\xf7\x92\x6d\xab\xba\x57\x04\x31\xae\xb9\x76\x4f\x84\xfe\x69\xb6\x9a\xe7\x3b\x57\x8c\x7d\xfd\xd6\xd3\xee\x79\xef\xeb\x26\x67\xcd\x74\x5f\xbf\xed\x10\x5b\x76\x3c\xee\x0c\x41\x56\x97\xb7\xdd\xf4\x5c\xff\x3e\xad\xdb\xb7\xa9\xf8\x7e\xae\xeb\xee\xd4\xd3\x79\x69\xb2\xef\xed\x21\x2b\xd9\x6e\xfa\xca\xf6\xbf\x15\x9d\x0d\x90\x55\x5d\x91\x95\x45\xd6\xb2\x7c\x77\x2e\x2a\x69\x4d\x97\x69\x7a\x79\xdb\xf5\x2a\x7e\x2c\xeb\xd7\xe9\xdb\xf6\x54\xe4\x39\xab\x86\x2f\xdf\xb7\xed\xa1\xa9\xcb\x72\xc7\x47\x40\xc3\x7a\xbd\xef\xc9\xd5\x97\xae\x38\x17\xbf\xb3\xff\xc8\x5e\x8a\x7d\x51\x16\xdd\x77\x01\xd1\x4b\x3a\xcd\xf2\x7f\xbd\xb6\x42\xf1\xdf\xff\x38\xd9\x66\xc7\x7e\x1a\xd8\xee\xd9\xb1\xee\x4d\xf6\x50\xf9\xa2\x3a\xb1\xa6\xe8\xde\xe5\xc8\xd9\x67\x6d\x71\x98\xe6\x4d\x7d\xc9\xeb\xd7\x6a\x82\x7e\x9d\x4a\x03\xee\x2f\x4d\xfe\xa8\xca\x2f\xf5\x2b\x6b\xa6\xa2\x3b\x34\x58\xf2\x47\xbc\x0b\xde\x85\x02\xdd\xc4\x97\x6d\xfa\xce\x0d\xbc\xfc\xb3\xef\x94\x32\xbb\xb4\x6c\xab\x7e\xd9\xc9\x82\xf6\x92\x1d\x84\x1e\x75\xf9\xa4\x3b\xdd\xb4\x5e\x89\x26\xc9\xca\xe2\xa5\xda\xf6\x23\x5c\x1a\x0b\x9f\xa2\xf0\x5e\x3b\x66\xe7\xa2\xfc\xbe\x9d\x66\x97\x4b\xc9\xa6\xed\xf7\xb6\x63\xe7\xc9\x7f\x57\x16\xd5\x6f\xff\x98\x1d\xfe\x89\xff\xf9\xef\xeb\xaa\x9b\xfc\xf4\x4f\xec\xa5\x66\xc9\x3f\xff\x87\x9f\x26\xff\x73\xbd\xaf\xbb\x7a\xf2\x3f\xbd\x7d\x7f\x61\xd5\xf4\x9f\xb2\xaa\x9d\xfc\xf3\xfe\x5a\x75\xd7\xc9\x3f\x64\x55\x4f\xba\x2c\x27\x3f\xfd\x0f\xac\xfc\xc6\xba\xe2\x90\x25\xff\x23\xbb\xb2\x9f\x26\x6d\x56\xb5\xd3\x96\x35\xc5\x71\x98\x51\x29\x05\xcb\xae\x5d\x4d\xea\x56\x5f\x66\x4a\x7e\xae\xab\xba\x6f\x15\x61\x1e\xcd\xc1\xd4\x1b\xb8\x7e\x40\xb6\xe7\xac\x2c\x8d\x82\xd9\x13\xb7\x6c\xa7\x06\x99\xd2\xf3\x7d\xff\x23\x5b\x9b\x0f\xb6\x9d\x32\xad\x97\xb7\x9d\x1c\x5a\xc2\x78\x26\xe9\x7b\x71\x7e\x51\x96\xb7\x97\xeb\x9d\xb7\xf3\x5f\xba\xef\x17\xf6\xe7\xc3\x89\x1d\x7e\xdb\xd7\x6f\xbf\x4e\x8c\x8f\x4d\x96\x17\xf5\xaf\xb7\x6f\xac\x77\x61\xb2\x52\x76\xd7\x3e\x6b\x19\xb7\xef\xed\x25\xab\xa4\x9c\x7c\xac\x4b\x9d\x05\x16\x41\xe9\xb1\x70\x0b\x80\x73\xf4\x98\xa6\xef\xbc\x59\x65\xcb\xe9\x81\x25\x86\x55\xdf\x7a\x5d\x7d\x3d\x9c\xcc\x31\xc8\x9b\x53\x29\xd1\x7c\xb6\xe0\x15\x13\xf5\xdb\xbd\x9e\x8a\x8e\x71\x8d\x63\xdb\x4b\xc3\xde\xb5\x97\xe2\x34\x1b\x37\xda\x97\xac\x77\x5a\x4c\x23\xc2\xce\x86\xdd\x9b\xed\xeb\x37\xe5\x51\x60\xbe\xd4\xf1\xf8\x2e\x7d\x9c\x7c\x70\x76\x2c\xa5\xde\x59\x2d\xd7\xd5\x17\x3e\x85\x1d\x4a\x96\x35\xc7\xe2\x4d\x0c\xff\x1b\xff\x73\xbb\xaf\xbb\xd3\x4e\x0e\xd2\xed\x4f\xc9\x4f\x3b\xe5\x03\x72\xea\x1c\xef\x72\x2d\x4b\x96\x8b\xd9\xf1\x58\xd6\x59\xc7\xb9\xfc\x5d\x71\xbe\xd4\x4d\x97\x55\x9d\x09\xc4\xbd\x53\x09\xc5\x7f\xb7\xc0\x0e\x65\x71\xb9\xb0\xfc\xa6\x1a\x57\x9a\x37\x13\xca\x74\x08\x67\xe7\x3a\xcf\xca\xe9\x21\x6b\xf2\x29\x57\xdc\x50\xaf\x71\x26\x7d\x61\x99\x7d\xbf\xed\xeb\xae\xab\xcf\xdb\x74\xc7\x27\xf3\x74\x77\xa9\xdb\x82\x3b\x0b\xd9\xbe\xad\xcb\x6b\xc7\x76\xc2\x99\x4e\x77\xfd\x54\x9e\x72\x5c\x6e\x2e\xe7\xc6\x38\x58\x36\xec\x6c\x55\x82\xc3\x2c\x0c\x98\x05\x57\x05\x0c\x6a\x69\x42\x11\x30\x2b\x73\x38\xce\x28\x7e\x6b\x00\x35\xa7\x18\x6e\xac\xb1\x8d\xc1\x3c\x82\x61\x6e\x51\xfa\xfb\x33\xcb\x8b\x2c\x69\x0f\x0d\x63\x55\x92\x55\x79\xf2\x65\xf0\xf5\x1f\x37\x4f\x97\xb7\x87\xdb\xd0\x50\xd3\x73\xbd\x2f\x4a\x16\xd3\x5e\x2e\xa8\xa7\xd9\x10\x60\xaa\xf5\x5c\x50\x4f\x23\x62\xc0\x74\x5b\x22\xd0\x54\x93\xba\xa0\x4e\xcb\x72\xff\x98\x8f\xd5\x03\xeb\x17\x18\x2c\x57\x48\xc6\x00\x16\x45\x06\x16\xda\x21\xda\x5d\x78\xdc\x3c\x5f\xde\x1e\x26\x97\xa6\xa8\x3a\xb3\x5b\xf8\xe8\xed\xa2\xba\xc5\x01\xf5\x75\x8b\x0b\x4c\x76\x8b\x03\xea\xeb\x16\x04\xd8\xd3\x2d\x2e\x34\xd9\x2d\x0e\x68\x4c\xb7\x48\xa4\xd1\xdd\x62\xac\x89\x17\x4b\x6b\xa0\x70\xf3\x14\xd7\x21\x16\xa4\xb7\x3f\x6c\x58\xba\x3b\x2c\x48\x6f\x6f\x38\xb0\xbe\xce\xb0\x81\xe9\xbe\xb0\x20\xa3\xba\x82\xe3\xdc\x3f\x40\xe6\xe9\x62\x65\xf5\x44\xce\xda\xdf\xba\xfa\x12\xd5\x17\x2e\xac\xaf\x37\x10\x68\xb2\x3f\x5c\x58\x5f\x8f\x60\xd0\x9e\x3e\x41\xc0\xc9\x5e\x71\x61\x63\xfa\x45\x61\x79\x7b\xc6\xc5\xf3\xc2\x47\x58\x3a\x72\xa0\x51\x83\x78\x5a\x57\xe5\xf7\x8f\xeb\x8f\xc3\x77\x31\x5f\x13\x7c\x65\xcb\x7c\x98\xf1\x62\xbe\xb1\x14\xf7\xb5\xc8\x99\x00\x8e\xd2\x5d\x14\xdc\xa7\xbe\x38\x02\xa9\xc1\x28\xb8\x4f\x89\x09\x04\x8f\x1e\xe3\x18\xa4\x2a\xa3\xe0\x31\xda\x6c\x20\x7e\xb8\xc7\x1c\x55\x59\xa5\x8f\x84\xaa\x0c\x6c\x3f\xac\x2d\xab\xd4\xf6\xcc\x8e\xd7\xb2\x3c\xe5\x51\x9a\xe2\x80\xfa\xb4\xc4\x05\x26\x35\xc4\x01\xf5\x69\x07\x02\xec\xd1\x0c\x17\x9a\xd4\x0a\x07\x34\x46\x23\x24\x92\xaf\x47\x06\xac\x7f\xbd\xb6\x5d\x71\x2c\x50\x34\x51\xf6\x1d\x37\x8b\x1a\xd1\x8f\x11\xe5\x93\x23\xd2\xb8\xee\x25\x22\xcd\x08\xff\x12\x61\xe1\xba\x4a\xf7\xb1\x08\x1b\x76\x9b\xa7\x33\x64\x22\x19\xc7\xb1\xb0\xdd\x8e\xb1\xb5\xd2\x7e\x07\x42\x1c\x99\x3b\xef\x24\x1f\x9e\x96\x1c\xae\xf7\x36\x9b\x3b\x31\x21\x3c\x70\x3b\x7a\x27\x87\xb0\x21\xc5\x18\x47\xd4\x6f\x20\x50\xb2\x63\xe7\xc3\xb5\x36\x3a\x2c\x4c\x0f\xe4\xb8\x11\xcb\xc5\x70\x07\xab\xcd\xfd\x9e\x91\xca\x49\xbb\x83\xf4\x0e\xd2\xe1\xe1\x63\xf0\x0a\xb6\xe4\xc8\x91\x29\x48\xdb\x83\x72\x54\x2d\xdc\x11\xc9\x89\x22\x83\xf1\x1e\xb2\xe1\x91\x68\x72\xbb\xab\x79\x3c\x23\xd0\xd2\xe3\xfb\x29\x2b\x37\x02\x52\x76\x67\x35\x7b\x07\x50\xc3\xf3\x1d\x35\x04\xc1\xde\x0c\xb4\x51\x7c\xb0\x7c\xe3\x30\xbb\x14\x5d\x56\x16\xbf\xab\xb9\x72\x38\x02\x1b\x8a\x2c\x9c\xb2\x7e\x65\xcd\x21\x6b\x99\x8d\xa1\x0b\x2c\x84\xeb\xe5\x82\x23\xe8\x02\x50\x67\x96\xe5\x45\xf5\x32\x99\x9d\x59\x75\x9d\x96\xd9\x9e\x95\x13\x7e\x42\x59\xd5\xdd\x97\x7d\x9d\x7f\x7f\x20\xc9\x18\xb5\xe7\xfb\xc7\xb7\x61\x7f\xd7\xe0\x90\x59\x50\xdb\x63\x7d\xb8\xb6\x13\xe7\xb3\x38\x11\x95\x24\xd8\xa6\xff\x41\xfb\x66\x5f\x66\x87\xdf\xe0\xf9\x3b\xce\x8d\x03\xba\xdc\xc4\x67\xc0\x2d\x4d\x53\xdc\xb0\xf2\x3e\x05\x11\x00\x38\x2b\x0e\xe8\xb2\x12\x9f\x01\x2b\x71\xe8\x80\x72\xcb\xb3\x46\xd7\x6b\xb1\x5c\xe1\x9c\x7a\x20\x97\x11\xff\x0a\xf8\xcc\xe7\xf3\x6c\xb1\x40\xf9\x5c\x9a\xe2\x9c\x35\xdf\x35\xab\xf5\x3e\x7b\x9a\xe3\xdc\x24\xa8\xcb\x50\x15\x40\x9e\xf9\xd3\x71\xb3\x24\x5a\xb2\xd2\x75\x9b\xaf\x37\x4b\x4a\x43\x7a\x38\xac\x1d\x2b\xa7\xc7\x56\x7b\x36\x47\x59\x15\xd5\xb1\x8e\x61\xd5\xc3\xb9\xac\xf8\xd7\x58\x56\xed\xf5\x70\x60\x6d\xab\x5b\x92\xed\xd3\xe5\x33\xce\x4d\x82\xba\x0c\x55\x01\xe0\xb9\x58\x3e\x3d\x2d\x0e\x28\xcf\xd7\xac\xa9\x8a\xea\x45\x6b\x65\xf6\xc4\x16\x4b\x62\xb8\x09\x50\x64\xc0\xc9\x02\x38\xe4\xd6\x8f\xab\x74\x4d\x68\x66\xf5\x32\x00\x1e\x9e\x56\x29\xad\x9e\x3d\x24\xa6\xa0\xfc\x3b\x60\x98\xa5\xcb\xe5\xe2\x99\x1e\xe3\xd3\x7d\xa1\x9b\x76\xbe\xe8\x7f\x3c\xb0\x9d\xd1\x78\xab\xfe\x07\x85\x7d\x69\xd8\x77\x3e\x58\x06\x68\x11\x5c\xe3\x87\x56\xb0\xab\xac\xff\x21\x61\x15\xd8\x63\xd6\xff\xd0\x24\x81\x59\xd9\xaf\xfb\x9f\x00\x70\x94\xfd\x10\x67\x78\x06\xac\x63\xb1\x6c\x58\xa3\x81\x8f\x59\xff\x83\xc3\xf2\x23\x47\x29\xb5\x79\x08\xb9\x24\xcc\xa6\x44\x10\x91\x4f\x76\x4c\x97\x0f\xa3\x65\xe7\x62\x5f\x97\x39\xc0\xd9\xf8\x71\x1c\xf8\x47\x08\x5f\xb4\x53\x1e\x02\x02\xc3\xc2\xee\x76\x72\x85\x67\xe0\x7a\xb9\xd8\x6c\xcf\x39\x29\x58\x8a\xfd\x5d\xfe\xb0\x90\xc2\x75\x88\x69\x29\x24\xec\x47\xa4\x08\xfb\xb7\xa6\x58\x8e\x73\x18\x92\x4d\x20\x8c\x12\x30\x2c\x8a\xed\x6b\x7b\x84\xe0\xa0\xf7\xb5\x8f\xeb\x94\x0b\xf6\x88\x57\x4e\x0b\xa0\x80\x3f\x24\x42\xd8\x81\x07\x92\x8d\xe8\x24\x80\x71\xa7\x8c\x8e\xc7\x2f\x84\xc1\x5d\x7e\x5a\x14\x03\xfe\x43\x82\x84\x97\xe6\xb6\x7c\x23\xda\xcb\x46\xba\x53\x52\x63\x47\x54\xd0\x95\x8b\x12\x8a\x5c\x0f\x78\x2c\xd9\x9b\x0d\xd7\x7f\x03\x0b\x17\x09\x47\x01\xc4\x1e\xa0\x73\x5e\x96\x89\xb3\x79\x8d\x3b\xfb\xe5\x14\x2d\x73\x75\x07\x45\xdf\x61\xa6\xc1\x02\x76\x4e\x0c\x1f\x0f\x45\x60\x42\x46\xc9\x6c\x1e\xf0\x71\x5a\xb6\x35\xb8\x87\x1a\x69\x0c\x2c\x26\xe3\xdb\x00\x3d\xdf\xe1\x24\x91\xb1\x79\x0f\x41\x72\x68\xba\x7c\xbc\xd2\xf7\xf0\x45\xc5\x83\xa5\x29\x0c\x51\x6c\x8f\x0d\xf1\x95\x06\x8a\x1d\x1f\x92\xb9\x35\x42\x5c\x9e\xe3\xc6\x88\xa4\x6a\x8d\x92\xbb\xa8\xfa\xb4\x1a\xb0\x09\xb5\x5a\xf4\x58\x51\x54\xc1\x68\x19\x29\xbb\x39\x5e\x24\x3d\x7b\xc4\xdc\x47\xd1\x37\x66\x20\xa3\x7b\xda\x03\x1d\x37\x8e\x7e\xde\x4d\xd4\x98\x2c\x24\x51\x6b\x16\x70\x08\x1a\xa0\xe8\xf4\x62\x96\xe1\x43\xc4\xf2\xae\x09\x84\x91\xc3\x05\xf5\x9c\x29\x59\xee\x1a\x3a\xa8\x57\xfc\x01\x0e\x11\x0a\x4f\x3b\xbb\x63\xf8\x46\x70\x40\x06\xd6\xc8\x3a\x21\xc3\x0b\x77\x52\x3f\x42\x3d\x62\xa8\x79\x5c\xcf\xfb\x38\xbb\xc3\x8e\x74\x29\x3f\xc2\xc0\x37\x7d\x11\x7c\xa3\x6a\x67\x8e\x6c\xdf\x2c\x68\xc0\x10\xa3\x16\xf8\x7e\x38\xf8\xc8\x31\x8b\x79\x82\x84\x1c\x77\x8d\x58\xcc\x2f\xbc\x9f\x7e\xc4\x68\x22\xbd\xc4\x11\x5c\xc3\xf4\xb1\xc1\x7a\xb7\xeb\x68\x52\x26\x86\xea\x67\x3b\x92\x08\xcb\xbb\x5b\xcb\x37\x4e\x29\xef\xf2\x2e\xf2\xc8\x44\x89\xac\x99\x70\xd2\xfc\xca\x18\x8f\xf7\xb6\xe1\xab\xda\xf5\x23\x05\x24\x05\x22\x04\xf8\x56\xb4\xc5\xbe\x64\x37\xfe\x2f\xbf\xf4\xe2\x06\x94\xc7\x0e\x46\x29\x99\x35\x0e\x7d\x6c\x15\xac\x8f\xfb\xc8\x11\x2b\x85\xb0\x06\xab\x57\x08\x09\xfb\x51\x21\x7c\xc3\x0e\x48\x05\x75\x34\x42\x34\x81\x30\x5a\x3e\xaf\x24\x60\xec\xfb\x65\xe0\xa0\xf7\xb7\x8e\x69\x24\x24\x77\xdb\x3e\x78\xf9\x2b\xe0\x0f\x4b\xe0\x33\x25\x50\xb0\x11\x3d\x04\x30\x3e\x20\xa2\x61\x75\xa4\x2c\x88\xc1\xf1\x4a\x62\xc0\x7f\x58\x0e\x9f\x13\xe1\x88\x37\xa2\xb5\x6c\x24\xaf\xa0\x3d\xaa\xb8\x0a\x55\xb2\xb6\xd5\x17\x0e\x2d\xe2\xf2\xea\x0f\x07\xd1\xd7\x80\x2c\x98\x26\xcb\x8b\x6b\xcb\x41\xe4\x05\x37\xf1\xc5\x01\x6c\x4f\x59\x5e\xbf\x4a\xc0\x37\xf9\x27\x56\xa5\x6b\x25\xae\xb9\xf1\xdb\x74\xea\x4e\x0d\x1f\x29\xd3\x43\x56\x96\xf5\xb5\x13\xb7\xba\x54\xd1\xb5\xd5\x77\xf6\x64\xc1\xb9\xfe\x1d\xfb\xda\xba\x1f\xed\x0f\xfa\xc2\xf5\xec\x58\x18\xdc\x3f\xc2\x82\xae\x01\xbf\x50\x65\xb5\xda\xfa\xf2\xb6\x33\x9a\x27\x4d\x16\x97\xb7\x64\x79\x79\x4b\x9a\x97\x7d\xf6\x65\x9e\x4e\xc4\xff\xcf\xe6\x0f\x93\x34\xe9\x7f\xe6\x58\xd9\x0e\x9c\xa3\xef\xc0\xae\xa2\x7d\x57\x8c\x4b\xc1\xc3\x02\xb6\x65\xd6\x76\xd3\xc3\xa9\x28\xf3\x07\x75\x8f\x58\x5e\x53\x92\x97\x8d\x33\x0e\xab\x8e\x01\xfb\xdf\xc5\xd1\xdf\x68\x89\xe5\x11\xae\x24\x98\x1d\xf8\xd5\x65\x83\x4a\x51\xb5\xac\x93\xb0\x0b\x97\xd6\x02\xa3\xa5\x6e\xa6\xf1\xbe\xc9\x2e\x17\x96\x35\x59\x75\x60\xb0\x17\xec\xef\x7c\xbf\x77\x5a\x74\xec\xdc\xca\x20\xca\x1d\xec\x90\xc5\xe5\x6d\x87\x78\x0e\x3b\x18\xdc\xa9\xae\x18\x2e\x66\x8b\xf5\x70\x67\x4e\xb5\xde\x21\x2b\x0f\x5f\x66\xcb\xc7\x35\x3b\x27\xd3\x5e\xe6\x07\x0d\xd1\xd5\x17\xb4\x58\xdd\x06\x6b\x58\xc9\xef\x75\x23\xf7\xe6\x1c\xe5\xdd\x81\xb3\xcf\x9d\x8c\x2d\x53\xb7\x5c\x55\xf5\x14\x67\x7e\xef\x8c\xdf\x10\xd7\x9f\xc4\x8d\x33\xf1\xcd\x09\x2e\x05\x97\x09\xab\xfa\xb5\xc9\x2e\xaa\xc9\x65\x12\x04\x79\xe8\xa8\xef\xe9\xca\xc2\x59\x71\xe8\x07\x94\xf9\x17\x0f\x80\xc9\x9a\x17\xe6\x7e\xee\x2d\xe8\xf5\xec\x7e\x17\x57\x40\x87\xd4\x08\xec\xac\x6e\xc9\xf7\xbf\x43\x66\xdb\x63\xd1\x28\x4d\x26\x35\x9b\xd7\x9f\x37\xfd\x14\xb6\x3d\xc8\x65\x31\x9b\x8b\xab\xa6\x90\xfe\x40\x4e\x90\x37\xf8\x41\xfa\x12\x1d\xd2\x44\x98\x7a\xe4\x1f\x78\x8d\x93\xdc\xc3\x65\xe6\x66\x88\xd0\x03\x59\x5d\x5e\x1e\x0e\xb1\x77\x68\xbe\x0a\xbe\x65\xdb\x1b\x02\x83\x06\xff\xdb\xa2\x21\x06\x67\x90\x86\x68\x47\x61\x08\x1e\x20\x41\x50\x04\x4d\x4d\xff\x33\x9b\xf7\x43\x4e\x58\x88\xc5\x7c\xf2\xfc\x3c\x59\xac\xd7\x93\xd9\x62\x0d\xaa\x2b\xd0\x35\x61\x6d\x71\x4c\x51\x45\x1c\x00\x2d\x6a\x3f\x24\xfc\x37\x67\x01\x3d\xb3\xc0\xca\x2b\x02\x69\x22\x4d\x69\x16\x59\x3d\xa5\x8a\xa4\x19\xb6\xbf\xca\x7e\x24\x32\x9d\xf8\x2b\xe7\x36\x94\x26\xab\x1a\xcc\xa1\xcb\x9e\xfa\x1f\x9a\x2e\xb7\x1a\x38\x61\x5d\x84\x54\x5e\x97\x21\xb5\x17\x81\x65\x04\x3d\xb7\x59\x90\x38\x34\xbc\x1f\xfe\x92\x17\x6d\xef\x74\xe4\xbf\xde\xd9\xcb\x96\x5f\xe3\x34\x03\x7e\x69\x9a\x56\x0e\xbb\x81\xd0\x41\x62\xd5\x7c\xcc\x68\x59\xaf\x27\xea\x7f\xf6\x78\xe1\x14\x7d\x0d\xc2\x25\xbf\xbb\x25\xa4\xeb\xca\x9a\x8e\xe5\x08\x6d\xe9\xb7\x18\x17\xcb\x7d\x04\x48\x9d\x4f\xd3\xd4\x8b\xe8\xad\x9f\x94\x21\xb6\x8a\x21\x61\xeb\x6b\xd7\x3b\x0f\xb8\x92\xab\xc2\x58\x0d\x0c\xf0\x2a\x6b\x1e\xfc\x29\xef\xd2\x53\x35\x48\xcc\xdf\x65\x75\x13\x37\xf4\xd2\x27\xef\xbd\xcc\x8e\xc7\x63\x62\xc5\x93\xc6\x36\x0b\xb0\xd8\x42\x07\xe3\x55\x2d\xd8\x11\x18\xe0\x5d\x66\xc1\x52\x61\xcf\xd8\x0e\xb1\xa4\xab\xc7\x43\xe4\x70\xd3\xaa\x8b\x10\xd3\xaa\xcb\x10\xd3\x2a\xa2\x68\x09\x7a\xae\x69\x45\x82\x6e\x2d\x9d\x14\x61\xbd\x23\x47\xb8\x2d\x3d\x69\xf7\x0c\xb1\x46\xd8\x3d\x63\x1d\x01\x8d\x1e\x27\xf7\x99\x46\x01\xad\x94\xc7\xee\x79\x67\x03\x87\x00\x3d\xd7\x2f\xfa\x1f\x2f\xee\xa7\x99\xf6\x08\x79\xb1\x11\xe7\x14\x8e\x34\x7d\x1e\x76\x9f\x6f\x90\x1c\x61\x7f\xa4\x91\xf5\xb6\x0c\x66\x62\xc6\xe8\x5c\xb0\x3b\x3e\xcf\x00\x1a\xba\x4c\x0d\xef\xfb\x4d\x1f\x8f\x5a\xc5\x4d\x9f\x2e\x42\x4c\x9f\x2e\x43\x4c\x9f\x88\xea\x27\xe8\xb9\xa6\x0f\xb9\x04\xb0\x58\xae\x1c\x19\x83\x9e\x38\x86\x14\x63\xfa\x0c\xb1\xc6\xb8\x7c\xab\xf5\x44\xfd\xcf\xb6\x7e\x9c\xa2\xdf\x2e\x08\xc9\xef\xb1\x7e\xba\x5e\x1e\xeb\xb7\x58\xae\x76\x30\x2f\xa3\x8f\x00\x69\xfd\xe6\xd9\x62\xb3\x5c\x7a\x71\xbd\xb5\xec\xc5\x18\xed\xf5\xd1\xf2\x62\xc3\xcd\x29\x1c\xeb\xf8\xd1\xec\xee\x31\x4b\x8b\xe5\x2a\xb1\xee\xa6\xf8\x84\xbd\xdb\xc8\x72\xa9\x13\x24\x80\x3d\xb2\x65\xa0\x7d\x51\xca\x18\xaf\x73\xc1\xee\xf8\x3c\xeb\x67\xe8\x32\x35\xc2\xef\xb7\x7e\x79\xd6\x10\x7e\x9f\x2a\x41\x6c\x9f\x2a\x42\x4c\x1f\xbf\x67\x84\x13\x73\x0d\x9f\x7b\x29\xc9\xd5\x46\x7e\xbb\x62\xe4\x00\xb7\x44\x27\x0d\xdf\x20\xd5\x08\xbb\xb7\x5c\x4d\xd6\xf3\xc9\xe6\xc9\x31\x7a\x3d\xb5\x4f\xb3\x06\x58\x75\x7c\xde\x9e\x6f\x22\xb0\xf1\x49\x73\x27\x36\x60\x7c\xa8\x9f\x69\xd3\x03\xd2\x62\xa3\xcb\x2e\x1b\x69\xeb\x08\x4e\x3f\xca\x00\xd9\xd2\xfe\x18\x9b\xea\x6b\x13\xc7\x8e\x8c\xd0\xb2\x50\x1f\x7c\xa2\x7b\x07\x94\x97\x1e\xce\xf7\x5b\x39\x79\x19\x11\x37\x74\x46\x21\x62\xeb\x8c\x52\xc4\xdc\xa9\x5b\x8e\x24\x55\xd7\xe8\xa1\x17\x23\x2d\xb7\x56\x5d\xc0\x44\x6c\x08\xbf\x8b\x49\x78\xc3\x6e\x4d\x48\xd3\x07\xc4\x1b\x63\xfd\x1e\x27\xf3\xa7\xcd\x64\xbe\x78\x76\xec\x9f\x24\xe9\x37\x81\x42\xfc\x7b\xac\xa0\x51\xb9\xb8\x65\xaf\xe0\x15\x20\x31\x62\xe1\x8b\x60\x7f\xfa\xd2\xd7\x2b\xf3\xe7\xaf\x46\x0d\xe2\x6a\x40\xc5\x19\x52\x9f\x98\x1f\x36\x77\x9c\x78\xe2\x5e\x3b\xf6\xb3\xbb\xd3\xb9\x52\x0a\x39\xbe\x3b\x30\x73\xf4\x39\xab\xda\x00\x93\xfb\x17\xd1\x71\x1b\xcd\xfc\x2a\x36\xb2\x18\x02\xc7\x6f\x08\x0e\xb9\x52\xae\x28\x6f\xd1\xb8\xcc\x6d\x7f\xf5\x99\x47\x8b\x99\x67\x61\x5b\x8d\xf7\xef\xe8\x83\x3f\xc5\x16\x5b\xd8\x57\xca\xeb\xf5\x88\xec\xb5\x16\xb2\x75\xef\x5b\x10\x57\x23\x76\x03\x61\x88\x03\x86\x3f\xc2\x26\xda\xa8\x9f\x6e\x10\x69\x69\x3f\xdf\x1a\x2a\xca\xa3\x4c\x21\x2d\xe0\x47\xed\xa0\xa0\x9c\xb8\x29\x0a\x3c\xbc\xee\x33\x0d\x5a\xf7\x46\x76\xc1\x8f\xb3\x80\x3e\x0e\x3f\xda\xfc\xf1\xf4\x10\x23\xcd\x5f\x8f\x43\x98\x3f\x55\x84\x98\x3f\x23\xc1\x84\xfd\xd5\x67\xfe\x2c\x66\xa4\xf9\x1b\xc8\x7f\x8a\xf9\x53\x6c\x5d\xf3\xc7\x19\x79\xcd\x5f\x0f\xf1\xa3\xcc\x9f\x92\xeb\x5e\xf3\x67\xe3\x8f\x30\x7f\x36\xea\x5f\xc1\xfc\x29\x96\x9f\x6f\xfe\x14\xe5\x0f\x9a\x3f\x9b\xcc\x8f\x34\x7f\x36\xaf\xbf\x8e\xf9\xb3\x7b\xfd\xf3\xcd\x9f\x8f\xc3\x8f\x36\x7f\x2a\x65\x0d\xb2\x78\xe3\xd9\x6b\xfc\x68\x84\x11\x34\x4a\x11\x3b\x08\x53\xdf\x20\x05\x3e\x6b\xe8\x32\x26\x0d\x22\xe0\x33\xc2\x26\xae\x36\x93\xf9\xe3\x66\xb2\x7e\x74\x6c\xa2\xc1\xdc\x35\x8b\x8a\x9d\xd7\x32\x4a\x20\xff\xaa\x59\x34\xfc\x3d\xc6\xd1\x10\x30\x72\xd5\xcc\x79\x05\x48\x8c\x30\x91\x08\xf6\xe7\xaf\x9a\x7d\x32\x7f\xbe\xa1\x34\x88\x8f\x5b\x35\xfb\xc4\xfc\xf0\xaa\x99\x13\x4f\xdc\x14\x53\x7e\x76\x77\xae\x9a\x95\x42\x8e\xef\x8e\x1f\x67\x34\x03\x4c\x7e\xb4\xdd\x54\x69\xb7\x10\x95\xe6\x19\xb8\xfc\x68\x84\xdd\x34\x4a\xb1\xe8\x45\x90\xbe\x0b\x29\xf0\xd9\x4d\x97\x31\x1d\x13\x68\xf2\x19\x15\x15\x98\x4e\xe6\xab\xc5\x64\x89\x04\x05\x0e\xdc\x91\xe8\x4b\xc9\xcf\x6b\x38\x25\x90\xdf\x98\x88\x96\xbf\x2b\xb6\x70\x10\x30\xce\x70\x0a\x5e\x01\x12\x23\x0c\x27\x82\xfd\xe9\x86\xd3\x2b\xf3\x0f\x88\xc6\x1b\x88\x8f\x32\x9c\x5e\x31\x3f\x7c\x94\xcc\x89\x27\x6e\x9e\x3c\x3f\xbb\x3b\xcd\x89\x52\xc8\xf1\xdd\xf1\xe3\x0c\x67\x80\xc9\x8f\x36\x9c\x32\x77\xa0\xab\xd1\x22\x8d\xa0\x17\x8b\x30\x9b\x43\x21\x7a\x44\x6d\x64\x20\x74\xbf\xfb\x6c\xa6\xc3\xd4\x73\xb4\x3c\x30\x19\x63\x31\xd3\x74\xb2\x59\x4d\xd6\x0b\xe4\x74\x59\xb1\xc6\x4e\xd7\x39\x33\xaf\xb9\x14\x30\x5e\x0b\x22\xdb\xfb\xbe\x23\x6a\x25\x5d\x9c\xb1\x14\xac\xfc\x14\x46\xd8\x4a\x17\xf9\xd3\x4d\xa5\x4f\x62\xfc\x98\xd4\x2e\x1d\x79\x58\xed\x63\xf8\xf9\xa6\xd9\x15\xf7\x5e\x3e\x42\xee\xc4\x4d\x02\x1a\xdd\x38\xc0\x8e\x68\xa5\x1c\xa1\x7b\xe1\x3e\xf9\x6b\xc4\x26\xc6\x73\xf3\x2c\xdf\xf8\x55\x35\xf7\x1a\xa1\xfd\xc8\x83\x89\x23\xae\xbd\xb9\x0f\x4c\x80\xfd\xd5\xac\x79\x71\x9f\x12\x53\x10\x86\x6c\xf2\xad\xe0\xaa\xee\xa6\x59\x59\xd6\xaf\x2c\x27\x9e\x0b\x85\xad\xa2\x5f\x4e\x84\x63\xa9\xbe\x64\x87\xa2\xfb\xbe\x9d\x81\xf3\xfd\xb6\xcb\xba\xe2\x30\xd1\x2f\xe2\x19\x0f\xb2\xea\x6f\xf2\x11\xc0\x26\x70\x29\xc9\x24\x7b\xbc\x96\x25\xbf\xd7\x07\x52\x7f\x59\x0f\xe2\xea\x06\x11\x9a\x7e\x73\xba\x7b\x50\xe0\x9d\x7c\x30\x79\xca\xbe\xb1\xaa\x6b\xdd\x63\x18\x30\x58\xb2\xaa\x38\x8b\x27\x7b\x87\xb7\x6e\x93\xd9\xba\x4d\x8a\xea\x58\x54\x45\xc7\x92\x5e\x0d\x32\x75\x47\xb4\xef\xd5\xa4\xad\xcb\x22\x4f\xe0\xb3\x93\xba\xd7\x9f\xd3\xd5\xd3\x86\x5f\xe9\x15\x9f\x79\xe2\x41\x52\x3b\xbb\xfa\x82\x9a\x16\xf9\x00\xe2\x4f\xd6\x45\x5e\x75\x19\x72\xb8\x0a\xc9\xce\xbb\xe1\x72\xe0\x3a\xfd\x39\x99\x26\x5f\xe6\xec\x9c\xfc\x29\x59\x3c\x3c\xec\xf4\x5d\x53\xa7\xc4\x79\x7c\x90\x58\x8a\xf2\x3e\xbf\xa1\x5a\x23\xff\x12\x49\x72\x1d\x1d\xf2\xf4\x42\x7b\x43\xee\xe0\x82\xce\x17\x39\x42\x9a\xec\xb2\xed\xff\xe3\xdc\x6b\xe5\xc5\x6d\x97\x35\x5a\x56\xfd\xc6\xb5\x75\x8b\x79\x66\x8e\xa8\xe1\x21\x6c\xea\x86\xa8\xbc\x01\x0a\x90\x90\xeb\x98\x92\xf8\xd4\x02\x0c\xdd\xa8\x36\x81\xb1\xe7\xb9\xdd\x8b\xa5\xfa\xe9\xd9\x9e\x80\x48\x7e\xaf\xee\xda\x9b\x1a\x04\x0a\xc2\x2c\x4c\x11\x21\x07\xa1\xad\x18\x0b\xab\x04\xb4\xd7\x74\x7e\x79\xf3\x72\x75\x5b\x50\xbe\x74\xe9\xc3\x72\x7d\x28\x0a\xca\xf2\x2c\x29\x30\x71\x6f\x3a\xf0\x44\x7a\x98\xa3\xbc\xf3\xaa\x1e\x0d\x5f\xc6\xd5\x41\xbd\x67\x1e\x55\x93\x38\x60\x55\x9f\x30\xf4\x36\x56\x06\xe9\x08\xc3\x67\xd1\x57\x43\x0d\x8b\x76\x78\x3a\x0d\xbf\x6c\x0e\x60\xc5\x53\x0a\xe8\xe8\x65\x55\x2e\xde\x56\xcd\x8a\x8a\x35\x3a\x1d\x45\x22\xde\xb6\xb5\xef\xc2\x47\xe6\x44\x31\xe9\xa9\x64\x1b\xcf\x9b\xf4\xa2\x66\x13\xfe\xbb\xc1\x96\x37\x79\x79\x2d\xe0\x3d\xeb\xe5\x42\xbf\x1a\x2c\xf5\x54\x7e\x51\x24\xb9\x7d\x13\xbf\xf2\x17\x84\x03\xf9\x62\x54\x62\x14\xc0\xd6\xc8\x2f\x62\x80\xce\xd7\x0b\x2d\x6c\x0c\x69\x95\x48\x04\xd6\x48\x24\x33\x32\xc0\x96\xab\x55\x04\x59\x37\x7d\x0a\xd6\x9e\x40\x46\xf1\xc7\xa8\x24\x4d\x2a\x79\x89\x94\xd2\x97\xb3\x04\xe7\x6f\x56\x46\xfc\xf1\xae\x5f\xe9\x8d\x4c\x6a\xa1\xdd\x95\xb2\xf8\x5a\x16\xe6\x03\xfa\x3c\x99\xc3\x3b\xe2\xe2\x38\x94\x07\x9f\x27\x2f\x3d\x85\xb5\xaf\xf0\xe2\x2b\x6b\x7c\x3c\xb9\x9f\xe5\x29\xbf\xba\x6c\xed\xa6\x30\xeb\x79\x9a\x0f\xa8\xa7\x85\xf1\xfb\xd2\xf8\x7d\x65\xfc\xbe\x36\x7e\xdf\xc0\x0c\xfc\xf6\x5b\xf8\x3b\x9e\x41\x43\xa7\x71\x98\x2f\xd6\x26\x5f\xf3\xe1\xb6\x21\x6b\x82\x9e\xbd\xa1\x90\x74\xea\x85\xbe\xef\x60\x8d\x16\xc0\x6d\x36\x53\x32\x68\xe2\x8f\xf3\x15\x44\x09\xd0\x9f\xcd\x57\x8b\x27\x80\xb1\x04\x4c\x10\x1e\x9b\xcd\x66\x03\x31\x42\x3c\x96\xcb\xe5\xd2\xc4\xa8\x4b\xb3\x57\xad\xfa\xee\x4c\xbb\xb5\x00\x8c\xe0\x33\xce\x0b\x44\x36\x58\x15\xeb\x41\x67\x14\xe1\xe9\x09\xe2\x80\xd7\x9d\x1d\xf8\x39\x3e\x92\x94\xcb\xc1\x65\x5e\x3b\xee\xb4\x99\xab\x46\x3c\x6b\x0e\x5b\xe3\x56\x16\xad\x7a\x6b\x3d\x67\x87\xe2\x9c\x95\xef\x66\x03\x99\xc5\x45\x7b\x30\xcb\x60\xf1\xb4\xfb\x7e\x61\xdb\x43\xd1\x1c\x4a\xb6\x33\x4d\x00\x60\xc8\xb1\x30\xc4\xf6\xdf\xae\x59\xc3\x06\xc0\x1c\x4e\x22\xa0\x33\x8e\xc5\xcb\xb5\x61\x76\x39\x9c\x63\x16\x58\x06\x16\x9b\x84\x5f\x79\x10\x9e\x21\x2b\x80\xa0\x24\xc5\xf9\x05\x4d\x5f\xe9\x00\x1e\x8b\x97\x43\x76\xe9\x27\x6a\xf0\x00\x7e\x97\x95\xc5\x01\x3c\x9c\x7e\xf3\x3d\x5e\xaf\x3a\xd9\x79\xba\x7e\xb6\x6f\x58\x96\x1f\x9a\xeb\x79\x2f\x92\x33\xa9\x47\x8d\xf8\xef\x55\x76\x66\x93\xd9\xa9\x78\x39\xf1\xeb\x35\x93\xd9\xa5\xa9\x5f\x1a\xd6\xb6\xf6\x63\xee\x83\x24\xed\x75\x3f\x31\xfe\x30\xdf\x98\x7d\x5c\xff\xfc\x0e\x8d\xeb\xcd\x5c\x80\x5a\xcb\xdb\xdc\x59\xf0\x9e\xa4\x56\x6f\xe7\xd4\xfa\x50\x90\x93\x19\x8c\x74\x03\xf4\x15\x4f\x84\x75\x42\x9f\xc9\xaf\x2e\xd7\x6e\x32\x13\x9e\x5e\x22\xfe\x99\xcc\x7a\x35\xc9\x1a\x96\xdd\x3e\x9c\x74\xc8\xcc\x6a\x87\xd4\xf3\x64\x59\x76\xeb\xc5\x2d\x17\x9e\x65\x39\xda\x3a\xfc\xbb\x6a\x23\xa3\x29\x7a\x4f\x02\xb0\x70\x48\x1e\xeb\xba\xc3\x48\x8a\xef\x16\xc9\x7e\x71\x9e\x26\x69\x80\xe4\xbe\xce\xbf\x27\x5d\x63\x8c\x0a\x8c\x01\x06\x75\xb2\x96\x4b\xb2\x22\x9a\xc3\xb0\x15\xe4\x6e\xfc\x18\x20\xf4\xce\x8f\x01\x44\x6d\xfd\x48\x95\x70\x74\x60\xd8\x05\x98\x6d\x16\x88\x06\x18\x29\x82\x20\x80\xd9\xff\x9c\xf8\x76\xcb\xf3\x69\x5d\xca\xec\xc0\x4e\x75\x99\xf7\x4b\x06\xc5\xce\x2d\x93\x2a\xc2\xb7\xc5\xd7\xab\x89\xf8\xff\xd9\xf2\x61\x20\x26\xf3\x70\xf1\x3f\x49\xaa\x14\x50\x88\xbc\x47\xd4\xb1\x92\x4e\xcf\xad\x57\x48\xb4\x3c\x40\xd4\x5c\xc4\xea\x0f\x7a\xbd\x2a\xf8\x82\x72\x75\xde\xa1\xb8\x9a\x04\xcc\x6f\x9a\x86\x16\xcf\x86\xd2\xb9\x99\xa2\xa3\x08\x77\x72\xd3\xb3\xd7\x68\x2e\xcc\xb0\xc1\x38\x90\xa5\x37\x44\xe1\x86\x90\x43\xc2\xa7\x56\x3e\x28\xb3\x85\xe7\x8b\xc5\x44\xfd\x6f\x68\x64\x80\x1d\xd6\xb6\x28\xf0\x51\x5c\xa3\x2a\xf6\xa1\x7a\x05\x74\x33\x04\x19\xc1\xab\x77\x6a\xfe\xdc\xb2\xac\x39\x9c\xcc\xde\x36\x3f\xdb\x1b\xdc\x72\xab\x53\x51\xe8\x67\xeb\xba\x2a\xbf\x9b\xe8\xfa\x9b\xbb\x7b\xae\x87\x03\x9f\xf7\xa1\x76\xcb\xdc\x49\xf6\x0e\xbe\x8d\x84\x8e\x2e\x37\xc7\x14\x2c\xda\xe2\x18\xd8\xc0\x73\x98\xa0\x85\xce\x50\x74\x59\xb9\x25\x31\x83\xd3\x49\xd6\xa4\x25\xe6\xf9\x14\x20\x59\x99\x76\x05\x49\x17\x61\xe3\xa1\xad\xe6\xa6\x8f\x81\x45\x6e\xab\x81\x04\x31\x8e\x24\x54\xab\xb9\x7c\x9c\x52\xb4\xd5\x0c\x6e\xa3\x52\xbd\x68\x71\xa5\x97\x68\xd2\x94\xe9\x1a\x90\x4b\x8e\x36\x1e\xda\x64\x6e\xda\x09\x58\xe4\x36\x19\x48\x2c\xe1\x48\x42\x35\x99\xcb\xc7\x29\x45\x9b\xcc\xe0\x36\x36\x45\x84\x96\x38\xcf\x1a\x4b\xcf\xc4\x45\x6f\xfb\xc6\xaa\x85\x82\xb6\x97\x73\x53\x1d\x94\xb8\xad\x65\x5e\x46\xb7\x25\xa0\xda\xca\xe1\x61\x17\xa2\x2d\x35\x70\x1a\x75\xa7\x5c\x4b\x2a\x2f\x82\x41\xa2\xfa\x72\x28\x72\x91\xcd\xc0\x2d\xaa\x63\x0d\x54\xa4\xb2\x1a\x5c\x00\xc0\x8e\xad\xec\x2e\x50\xd1\xcf\xb6\x48\x68\x47\x60\x37\x69\xed\x42\xb7\x3b\xac\x9b\xb2\x48\x55\xa9\x4e\xc1\xf8\x21\xe5\x68\xd7\x00\xae\x23\xef\xbc\x82\x36\x46\x5b\xc2\xb9\x0f\x02\x4a\xdc\x36\x30\x6f\x82\x80\x2e\x23\x0c\x44\x45\x28\xbc\x71\x11\xcd\xfe\x8a\x34\xaf\x2d\x3e\x56\x86\x36\x2c\xa8\x84\x53\x80\xda\xa1\x8a\x1c\x5a\x4e\x6d\xec\x42\xc2\x08\x55\x51\x43\xcb\xbe\xcf\xa2\x1b\x45\x86\x8b\x42\xaa\x3a\xf8\x1d\x09\x77\x75\x71\xd1\xce\xc1\x02\xe1\xed\x42\xb7\x8b\xac\x10\x78\x44\x26\xaa\xf9\x30\x7e\x48\x39\xda\x88\x80\xeb\xb8\x18\xf8\xc1\xc9\x11\xd1\x63\x96\x2f\xa2\x82\x61\x91\xe8\x37\x17\x17\x77\xb7\x90\xc0\x58\xbb\x10\x71\xb9\x60\x48\x2c\x22\x13\xe9\x76\x21\xfc\x90\x72\xdc\xf5\x32\xb9\x8e\x8c\x89\x35\xa6\xa5\xea\xc5\xf4\xbd\x67\x46\x6c\x1c\x12\x12\xe3\x60\x12\x73\xa3\x13\x26\x67\x95\x61\xf3\xa3\x19\x20\xe7\x8a\x43\xcf\x91\x0e\x2f\xb7\x98\x98\x27\x07\x8e\xe3\x02\xe4\x86\x01\x74\xce\xca\xd2\xd2\xee\xe8\xe0\x19\x4d\x45\xa5\x8c\x36\xc9\xd0\xbb\x2a\x83\x81\x15\x09\xa8\x81\x7d\xf2\x6d\xb3\xcc\xcc\xf0\x14\x6b\xfd\xed\x44\xad\x88\x08\x0d\x67\x37\x65\xa6\x9f\x26\xb1\x4d\x30\xf2\x2e\x9d\x79\x46\x37\x3b\x9c\xd8\xe1\xb7\x7d\xfd\x36\x99\xf5\x8d\x52\xab\x6d\x40\x74\x6f\x16\x39\x32\x35\xda\x5c\x06\x71\x7c\x46\x86\x5b\x98\x4c\x3c\xb5\xb6\x97\xd2\xf7\x61\x63\x0a\xee\x2d\xee\xcc\xe3\xda\xf4\xe7\x5d\xc3\x78\x73\xab\x4d\xcf\x01\x8f\xef\x58\xff\xa5\xa9\x5f\xdb\x5f\x1f\x38\x8d\x93\x7e\x3d\xf8\xf2\xc6\xa9\xa8\xa3\xa4\x05\x3f\xcc\xcd\x59\xc9\xfa\xe5\xe3\xb9\xce\xb3\x72\x7a\x28\xeb\x96\xdd\x0c\xa8\x1e\xc8\xdc\xd7\x18\x56\xa6\x3d\x07\x95\x5d\xfc\x5a\xb5\xac\x1b\x0a\xf9\xc9\xf8\xb1\x78\x63\x39\x57\x8a\x9b\x14\x56\xac\x5b\xad\x6e\x51\xa1\x57\x32\xde\xc5\x3a\xed\x5a\xac\xdf\xc5\x76\xf5\xa1\xcb\xc0\xc6\x35\xd8\xd2\xc5\xe2\x61\x20\x9d\x35\x96\x0d\x7e\x4c\xda\xfb\x41\xee\x44\xee\x20\x72\xe9\xc5\x1f\x56\x1d\x06\x58\x15\x31\xc0\x61\x61\xc8\xad\xde\x5c\x95\xa0\xe6\x5e\x11\x07\x37\xa3\xd3\x40\xa4\x90\x1b\xab\xf6\x2e\x30\xbe\xca\x16\x05\xe9\xd4\xf9\x69\x8c\x6c\x26\x4b\xa5\xb0\x1d\x73\x9d\x1c\xbf\xfb\xc2\x8d\xc2\xb5\xec\x8a\x4b\xc9\x1e\x6e\x20\x5d\x3f\x0d\xb7\x05\x41\x94\xe6\x76\x3e\xbc\xfa\x2a\xf5\xdd\x08\x91\xd9\xa6\x43\xdc\x56\x42\x04\x6e\xf1\x73\x0e\x24\x32\xca\x0d\xc7\xda\xf1\x31\x78\xac\x9b\xf3\xb6\xa9\xbb\xac\x63\x5f\xa6\xab\x75\xce\x5e\x1e\x86\x82\x69\xdd\x14\x2f\xc5\x90\xac\x9f\x37\x8c\x79\x08\xd9\x0b\x25\xd3\xc1\xef\x9a\xe1\xf8\x95\x9d\x79\x5c\xd8\x3a\xfd\x79\x67\x84\x78\xf4\xb2\x37\x75\x39\x33\x22\xe4\x44\x53\x28\x5d\x75\x4b\x6e\x46\x9c\x5a\x6c\x1c\xdd\xbb\xa5\xf9\xa1\x63\x13\x63\x3e\xb0\x2d\x11\x7c\x80\x81\x8e\x11\xdb\x7d\x78\x8b\xdc\x7d\x9b\xc1\x1b\x35\x2d\x4f\x4b\x2c\xc3\x00\x15\x02\x1e\x9c\x1a\x06\x0a\x34\xcf\x98\xed\x76\x1b\x71\xfc\x8e\x3a\xa4\x70\x2f\xe7\x91\xdb\xe4\x00\x79\x66\x5e\x05\x80\x64\xe9\xd7\x0a\x10\x1a\xca\x79\x71\x0a\xb4\xc7\x03\x89\xa3\xf0\xd2\xcf\xd1\x7d\x13\xbc\x8e\x1c\x5e\xd5\x00\xfa\xa3\xc3\x77\x91\xbc\x6d\x44\x4e\x44\x7b\x2b\x9e\xe0\x3b\x72\xb3\x9d\xa6\x72\xd7\x2e\x3a\x45\xee\x53\x64\x1a\xbf\x0d\xee\x0c\xbc\x76\xca\xde\x2e\x59\x05\x9f\x85\xa3\x39\x62\x0a\xaa\x76\x13\x21\x6d\xee\xe1\xa8\x19\xe7\xd7\x87\x1b\xb4\x3f\x0b\x73\xca\x53\x6c\x34\x34\xf0\x58\xf4\x31\xb2\x6d\x37\x06\xf8\xa4\x16\x07\xf4\xe0\xc0\x79\x6e\xcc\x80\x5c\xec\x2d\x76\x75\x40\x4f\xf1\xc3\xf0\xe1\x7b\xd7\xd0\x74\x83\xed\x79\x1c\xd2\x1d\x91\x18\x84\x35\x34\x6d\x90\xad\x9f\xc2\x7d\x1b\xea\x03\x2d\xbe\xbf\x8c\xd7\x4c\xed\xa2\xe3\xc0\x78\xe5\x6c\x08\xa4\x72\x26\x08\x52\x39\x50\x3c\x7e\xdf\xdb\x98\xb3\x7b\x7d\x21\xfa\x0c\xa8\xa7\x0d\x8c\xd7\xcc\x86\x40\x6a\x66\x82\x20\x35\x03\xc5\x77\x6d\x4f\x0f\xb4\xf2\xac\x21\x7a\x8d\x6f\x4a\xa3\x80\x78\xbd\x2c\x00\xa4\x5a\x06\x04\x52\x2b\xb3\x74\xfc\x56\xf2\x40\x47\x6e\x78\x12\x95\x92\xbb\xc7\x03\x78\x51\x1d\x6b\x1d\x18\x62\xb6\x71\x45\xb4\x8b\xda\x29\xa6\x38\xe2\xad\xe3\xc2\x20\x0d\x04\x81\x90\x36\xb2\x00\xee\xd9\xd3\x45\x6b\x8e\xcb\x6c\x01\x20\x02\x1b\x10\x88\xb4\x66\xa9\xdc\x64\x41\x1b\x98\x1a\x27\x55\x40\x9f\x0c\x08\x74\x94\x54\x63\xf4\x09\xf7\x34\x8c\xcd\x43\x42\xa1\xe4\x96\x29\x05\x8e\xd7\xcd\x85\x41\xaa\x07\x81\x90\x1a\x5a\x00\x77\x6c\x6e\x1a\x53\x81\xd8\xd9\x23\xcc\x9c\xdc\xcf\xa4\xc0\x89\xf9\xc9\x81\xc1\x66\x28\x00\x84\xcd\x51\x10\xe0\x9e\x9d\x47\xd3\xc6\x54\x2f\xac\xc1\x2b\xa9\x76\x1b\x09\x68\xca\xe8\x59\x20\xa8\xd9\x33\x60\x50\xc3\x67\x96\xdf\xb1\x37\x68\x68\x44\xf4\x4e\xe0\x80\x43\x6f\xfb\x19\x63\x89\xd8\xe4\x33\x2a\x21\xdd\x38\xdc\x11\x82\x6e\xb4\xb5\x2b\x88\x7c\x54\x3d\x64\x6e\x06\x1a\xd2\xc0\x45\xf4\x5f\xf3\x62\x59\xc4\x6d\x32\x63\xef\x20\x45\xb6\x25\xe4\x0d\xa9\x8d\xde\x46\x50\xbf\xea\xed\x0a\xe1\x25\x1f\x8b\x92\x99\x51\x9b\x37\x64\x83\x52\x6d\x39\x9c\xb2\x76\xca\x1f\xfd\x53\xbf\x88\xca\xa9\x67\x04\x6d\xb0\xd6\x2c\x9e\xe9\x6b\x26\x7a\x07\xd2\x69\x69\xad\x5a\xb2\xc5\x7d\xea\x64\xa0\x08\xcd\x72\x70\x30\xfd\x1a\x90\xb8\xaa\x21\x38\x42\xe1\xf8\x13\xa3\xce\x23\x8e\xe6\xee\x5f\xdb\x35\xac\x3b\x9c\xe0\x75\x38\xef\xfd\x37\x23\x48\x56\xec\x85\xfa\xde\x30\x75\x5f\x2b\x15\x42\x0d\xee\xb4\xde\xae\x1c\x7b\x21\xdb\xf2\x96\x01\x55\x63\x5d\x9f\x58\xfb\xa1\x33\xf8\x5e\x9b\x9f\xff\x73\xff\x73\xbf\x08\xd2\xba\xd1\x22\x70\x00\x53\x84\x88\x5d\x71\x6e\xde\xc8\x35\x46\x50\x26\x61\x50\x69\x91\xec\x72\xf2\xa2\xfd\xe8\x66\x11\x2b\x0c\x1f\xe1\xd0\xdb\x47\xe6\xd2\x0f\x50\x0d\xf4\xb7\xf1\x88\x94\x9f\xff\xaa\xff\xb9\x93\xbf\xa7\xb3\x8d\x60\xa2\x0f\x75\x36\x58\x73\xf9\xa5\xa1\xbb\xd9\x8c\x79\xf2\xb7\x46\x9a\x8e\x6b\x0a\xb1\xd0\xf2\x6a\x4e\xe0\x29\x00\x73\x2d\x05\xa8\x06\x3a\xd8\x78\x2a\xc7\xcb\x9f\x31\x76\x27\x73\x4f\xef\x1a\x71\x4f\x1f\x1b\xca\xd6\xba\xd3\x2f\x10\xdd\xc1\x66\x84\x96\xbf\x35\xc4\xc3\x9a\xa3\x1a\x84\x2f\x3b\x7d\x44\xbd\xaf\x59\x58\xfb\x00\x26\xd1\x40\x0f\x0f\x6f\x82\x78\xb9\xcf\xd9\x22\x5f\x1e\xee\x16\xc0\xd3\xcb\x43\xcc\xd6\x87\x3a\x19\xac\xc3\x43\xe2\xd0\x7d\x6c\x84\x96\xf9\xdb\x83\xbf\x54\x34\xba\x3d\xd4\xc2\xd9\xdb\xd1\x81\x9c\xfd\x98\x85\x70\x5f\x4d\xc0\x2a\x07\x9e\x42\x08\x28\x5b\x76\x7c\x1c\x39\x61\xb8\xd1\x61\x3e\x19\x3e\xa1\xc7\xe1\x96\x02\x2a\x93\x15\x55\x85\x09\x34\x84\x50\xe1\x63\xbe\x0a\x29\xf0\x10\x19\x05\xaa\x43\x19\x23\x18\xa9\x7f\x6f\x0b\xd3\x1a\x0c\x83\xf0\xfc\xbd\x3c\xcf\xd6\x8f\x61\x7f\xc3\x9a\x8b\x2a\xbf\x9d\x0a\x65\x16\xa6\x88\x06\x67\xa2\x2a\xca\xd3\x78\x5a\xef\xef\xe5\xee\xb3\xfc\x55\xe4\xcc\xbe\x5e\x1d\xf7\xe3\xb8\xf3\xdd\xa9\xcf\x6e\x50\x2b\x09\x36\xa9\xf7\x3f\xa6\x41\x61\x9c\x23\xc9\xfc\x07\x35\xa8\xda\x8e\xf2\x6a\x7e\x20\xc3\xab\x87\x6e\xa0\x59\x41\x0a\x5d\xbf\x0c\xfb\x6c\xb3\xdc\xdc\x2d\x83\xc7\x22\x81\x30\xc3\x0f\xd9\x58\xb8\x51\x17\x12\x89\xee\x6f\x18\x14\xe9\x6f\x96\xe7\xe7\xc3\x72\xa4\x51\x52\x9b\x73\x5e\x17\x39\x90\x9b\xd2\x43\x37\xb4\xea\x35\xb3\x7f\x86\x64\x78\x9a\x3f\xde\x2d\x83\x6f\xd9\x6b\x46\x44\x7e\x70\xe1\x0b\xb6\x2d\x43\x32\x79\x96\xbd\x20\x80\x33\xb0\x1f\xf0\x34\x1f\xbb\x3e\x95\xdb\x95\x3e\xb2\xa1\x04\x7b\x34\xd9\xa0\xd3\x3c\xa4\x2e\xf4\x4a\xb0\x67\xcb\x7c\x39\xd2\x97\x73\xc2\x3a\x3d\x12\x7c\x42\x77\x83\x4d\xdc\x80\x40\x3e\xbf\xd9\x08\x36\xf5\x37\xc9\x6a\x99\x2d\x46\x4e\x28\xd4\x5d\x5c\x55\x4e\xef\x1d\x43\x08\x29\x58\x71\xa8\xab\x64\x76\xcc\xcc\x9c\x15\x3c\xf5\x91\x9e\xef\x89\x7d\x66\x50\xee\x21\xf6\xa4\x89\x9d\xb2\x96\x07\x0a\xba\x7d\x34\x32\x53\x13\x4e\xaf\xff\xf5\xce\xe4\x52\x80\x5c\x5f\x29\x76\xbe\x74\xdf\x5d\x39\x87\xed\xfb\x00\x0e\x97\x05\x86\x58\xa8\xf6\x0a\xe6\x1a\x52\x80\xa1\x44\x43\x0a\x6e\x5f\xbf\xe9\x71\x21\xb6\xa5\x39\x4c\x5e\x34\xec\xc0\x37\xa7\x0f\x75\x79\x3d\x57\x38\x42\x5f\x39\x14\x5c\x6d\xa4\xc3\xd4\x06\xec\x9c\x2c\xcd\xce\x37\x49\x99\xed\xaf\x6e\xc3\xcf\x2f\x6f\x09\xd0\x26\x13\xa1\xd7\x96\xdb\x10\x0d\x3a\xec\xd8\x8b\x60\x11\x0a\xc5\xab\xad\x1c\x58\x0f\x13\x1a\x6b\xbe\x42\xb1\x82\x43\xe3\x09\x45\x0b\x8c\x81\xe5\xda\xc5\xa2\x07\xc3\xa0\x64\x89\xbc\xfb\x1f\xc0\x35\x1b\x5e\xe9\xb4\xc8\x43\x90\x2c\x86\xb3\x15\xb2\x4b\x1a\x7b\x47\xcd\xa2\xa4\x05\xc1\x51\x10\xee\x52\x6c\x97\xfb\x9c\x17\x48\x09\x76\xe2\x8c\x68\x3a\x1f\xe8\x0e\x87\x4d\xa6\x3a\x9b\x27\x4e\x14\x24\x97\x82\x2b\xf2\x4b\x53\xbf\x6e\xe7\x56\x66\xab\x77\x93\x5e\xf0\x68\xc2\x0a\x72\xf4\x9d\x54\xa8\x56\x33\x23\x85\xb5\x40\xe6\xc7\x4b\xf6\x52\x54\x3c\x98\x74\xca\xca\xb2\xb8\xb4\x45\x4b\x14\xc3\xe7\xba\x40\x51\xc5\xde\x3a\xa2\xe8\xd2\xb0\x6f\x45\x7d\x6d\xbd\x01\x78\x66\x33\x44\xee\x64\x5a\x61\x53\x04\xbe\xa9\x04\x12\x23\x5f\xf7\x3f\x00\x23\x7e\xbb\x10\xe3\xca\xe7\xd8\xaa\xee\x8a\x63\x71\xe0\x75\xf6\x64\xe2\xa4\x98\x22\x72\x1e\x8e\xfd\x8f\x44\x11\x91\xe3\x2a\xb0\x39\xd5\x99\x28\xd3\x21\x9a\x15\x0b\x6b\xe6\xe7\x8a\x32\x56\x39\x9d\x2b\xe3\x65\xc5\xc7\xfb\xc2\x82\x61\xa0\xa3\x75\x19\x82\xeb\xe4\xe8\xc0\xe0\xbb\xf3\xa7\x20\x81\xc1\x9e\xc3\xeb\xbe\x89\x40\x2c\xb2\xf9\xa1\x19\xce\x62\x8d\x3c\x38\x55\xfd\xda\x64\x17\xf7\xa8\x54\x04\xae\xc3\xf3\xd2\x87\x44\x25\x07\x71\x4f\x4c\x7b\x76\xc1\x62\x10\x42\x08\x13\x8b\x2c\x8c\xc4\x68\xfe\x23\x5b\x8a\x45\x64\x39\x2e\x43\x03\x62\xf7\x95\xc2\xcc\x8c\x98\x06\xf3\x9b\x0e\x62\x50\x1f\xb7\x36\x94\x8a\xe7\xd1\x0a\xe7\x90\x52\x1f\x21\xad\xfe\xeb\xd6\x81\xb3\x03\x85\x07\x09\xd5\xcd\x87\x55\xd6\xff\xbc\xd3\x06\x00\x9c\xf8\x8b\x3c\x4a\x5c\xef\xdd\x39\x41\xfd\x2f\xb5\x0e\xf3\x8d\xbb\x11\x1b\x98\x4a\xaa\xef\x40\xf1\xb7\xce\x8c\xa4\xcc\xea\xbb\xe1\x5d\x84\x72\xb2\x1a\xd1\x02\xb8\x3b\xb6\xb3\x92\xa8\x9a\x61\x05\xef\xb3\x13\x2b\x2f\x93\x99\x98\x55\x80\xe4\xef\x01\xc7\x43\xa0\x00\x2b\x67\x8e\xa9\x86\x9d\x41\xc6\xb9\xc7\x34\x95\x38\xa1\xdc\x57\xc2\x75\xe2\xa0\xbe\xc5\x82\x06\xa0\x57\x0b\x1a\x84\x5a\x00\xf4\x95\x77\x48\xef\x60\xde\x41\x0d\xa8\xcf\x7e\x41\x8a\x78\x55\x22\xf2\x3c\x58\x47\xba\xaa\x50\x64\x34\xb0\x0c\xbc\x2a\xe4\x37\xf7\xcd\x33\x24\x55\xa0\x6e\xaa\x83\x83\x84\xa1\x58\x5c\x40\x1f\x58\x54\x9a\x8a\x8a\x25\x54\x65\xea\x5a\x2e\xd8\x2d\x33\x2a\x25\x6f\x9b\x82\x9d\x15\x53\x3e\x7e\x89\x12\x2c\xc2\x7b\xe5\x60\x65\x1e\xec\xca\x47\xb5\x6c\x63\x65\x6e\xe4\x35\xbd\x45\x87\x51\xd8\x98\x89\x32\x51\x81\x5c\xc1\x53\xe9\x1f\x52\xd8\x46\xae\x36\x95\x64\x75\x12\x0b\x2e\x6d\x65\x24\x34\xb4\x9c\xf4\xe2\xce\xf0\x34\xed\xe5\xdd\xc2\x5f\x17\x23\x15\x56\x44\x55\x4c\xe8\x60\x4d\x4c\x60\x5f\x45\xc0\xe2\xd6\xaa\x89\x5d\xe6\xa9\x4a\x84\xfc\x61\xa1\x09\x49\xcd\xa5\x72\x80\x3d\x9c\x75\x22\x80\x8d\xd9\x28\x00\xbd\x8d\xa6\x3b\xcc\x85\xfe\x96\x88\x14\xd6\xcd\x72\x15\x02\x8e\x11\x15\xe4\xc6\x8a\xed\x91\x48\x89\x1d\x9c\x18\xc9\x01\x52\x4c\x0d\x20\x82\x93\x43\x7a\x84\xae\xa8\x4b\x99\x63\x34\x26\x1a\x67\x3b\x92\x87\x99\x31\x7a\x8c\x0e\x8d\xc1\x88\xaf\x83\xa9\x4f\xd1\xe0\xb1\x35\x20\x74\xeb\x1e\xcc\xf8\x1a\x61\x7a\x36\x1a\x8d\xc8\xea\x4d\xe2\xf3\x2d\x3a\x7e\xf7\x89\xe5\xe6\x4e\x81\x8b\x62\xfc\x1a\xb3\x5b\x47\x23\x87\x77\xf0\x68\x5c\x63\x83\x43\x56\x00\x6c\x6f\x88\x69\xfe\xd4\x14\xd5\x6f\x83\x55\x2e\xda\xbe\xf8\x7a\x61\xf9\x58\x1f\x61\xc0\xfc\x05\xb2\xa3\x59\xfc\x12\x74\x26\xa4\x1f\x63\x25\xd6\x87\x6e\x0d\x42\x8f\xea\x28\x50\xe7\xb9\x4b\xc0\xf8\x35\xb6\xdb\x70\xe4\xb8\x6e\xc3\x71\xf9\x1d\x35\x9e\x04\x01\x3e\xf7\x10\x89\xf5\x0b\xe2\x3c\x4c\xc6\xa2\x8e\xf2\x2b\x03\x54\x7d\x0f\x45\x8c\xa2\x13\x52\x12\x49\x47\x6c\xda\x24\x72\x81\x34\xac\x2e\x8a\xea\xc4\x9a\xa2\xf3\xa7\x8e\x7f\xdc\x88\x9c\xec\x06\x25\xf4\xe9\x0c\xc5\x8b\xa7\x43\x15\xbf\xcb\x7f\x1c\xa9\xbc\x49\xe0\x1f\x37\xcf\x97\xb7\x87\xc9\xa5\x29\xaa\xee\x36\xb4\xc3\xa9\x6e\x8a\xdf\xeb\xaa\xcb\x4a\x30\x0c\x41\x0d\x85\x7a\xec\xb3\xb6\x68\xb7\xe9\x8e\x1c\xd9\x70\xe8\x88\x4c\xef\xe6\x32\x98\x7f\x07\x84\xe9\x55\x1f\xd8\xf7\x11\x5b\x3e\x0e\x66\x55\x37\xe7\xac\xbc\x45\x40\x52\x0b\xc7\x18\x2e\xf8\x8a\xd2\x83\xd9\x77\xd4\xcd\x7d\x4c\xc5\x6d\xbe\x35\x6a\x24\xcc\x8e\xa6\xf4\xae\x07\xf9\x45\x82\x90\x34\x7e\x31\x56\x6e\xbc\xb9\xb2\xa6\xa9\x5f\x1f\x90\xe9\xc4\x01\xf7\xbc\xcc\xf2\x28\x95\xb2\x38\x67\x2f\x6c\x22\xfe\x49\x8a\xf3\x8b\x91\xfe\xd9\xda\x5c\x30\x77\x41\x91\x84\xf9\x0a\x0d\x29\x12\x69\xa0\xe9\x07\x04\xb8\xe1\x87\x1b\x11\xee\x7e\x20\x9a\x32\xd9\xdc\xf9\x12\xd7\x18\x6e\x70\x23\x08\xee\x60\x46\x26\x8c\x30\x76\x56\x25\x22\x92\xde\xc1\x60\x3b\x38\x3f\x5f\xc9\x9b\x16\xc6\xbe\xa1\x00\xfd\x5f\x02\xa0\xa6\xc7\x41\xc3\x9a\x9b\x81\x91\xb0\x2e\x61\x98\x56\x84\xac\xa2\x1e\xe5\xa2\x96\x44\x6a\x66\x02\x51\x0c\x5d\x07\x13\x24\x6c\x26\x50\xf9\xc8\x45\x30\x97\x28\x22\xb5\xa1\xdb\x63\x8b\x6d\x75\x17\x07\x74\x8f\xae\x66\x5c\x0f\x45\x80\x9b\x9d\x14\x0f\x8e\x92\x8f\x68\x74\xa7\x32\xa2\xe9\xe3\x6b\x13\x82\xb7\xab\x13\x09\x8f\x33\x88\xd1\x05\xa7\x46\x5c\x23\xe2\x2b\x14\x00\xb7\xeb\x13\x07\x8e\x92\x8f\xd0\x4f\x5d\x99\xf0\x95\xac\x1f\x6e\xcb\x4c\x93\x9e\xa8\x9c\xe9\x13\xeb\x73\x7b\xdd\x77\x45\x57\x32\xfb\x3b\xf6\xb1\xed\x9a\x5a\xef\x4b\x1e\xae\x4d\xc3\xaa\xee\x1f\xfa\x3f\xfc\xed\xc0\x5b\x91\x1d\x3b\x67\x80\xfe\xff\xfe\x92\x9f\xe7\xf5\x37\xea\x86\x1f\x56\xbb\x59\xf0\x62\x1d\x8e\x13\xba\x59\x87\x63\xf9\xaf\xd6\x71\x57\x00\xbb\x65\xa8\x7d\x84\x9b\x19\xa6\x01\xf2\xb4\xf5\x10\x3d\x87\xf9\x66\xff\xfd\x59\xb8\x13\xc3\xb7\xfd\xf7\xb9\xf5\x69\xe1\x7e\x5a\xee\xbf\x2f\xac\x4f\xab\xfd\xf7\xa5\xf5\x49\xbc\x19\xc2\x65\xd1\x0b\x3e\x95\x47\x8d\xb8\x69\x99\xca\xb1\xa0\xba\x31\x4d\x7f\x26\x64\xdf\x7f\x9f\x3b\xac\x80\x77\x6a\x21\xf4\xf2\x81\x72\xfe\x06\x06\xa8\x11\x28\xde\x6c\xf8\x6b\x36\x4e\x7b\x01\xa0\xf5\x66\xb6\x00\x64\xfa\xb6\x82\x10\x56\x8b\xbf\xcd\x37\x3a\xb0\x65\x33\x3c\xec\x24\xf2\x8a\x6b\x2a\xab\xb7\xc5\x4a\xa7\xf0\x1a\xde\x7f\x5a\xac\x00\xd8\x72\xf1\xb6\x5c\x28\xb0\xe5\xf0\x4c\xd5\x72\x01\xc0\x56\x4f\x6f\xab\x27\x05\xb6\x7a\xd2\x60\xab\x27\x00\xb6\x59\xbd\x6d\x34\xd3\xcd\xc0\x74\x03\x99\x3e\x6f\xde\x9e\x75\x15\x9e\x37\xc6\x63\x63\x00\x6c\xbe\x78\x7a\x9b\x2f\x34\xdb\xf9\x62\xe0\x3b\x17\xa1\x32\xf0\xbc\xde\x39\x47\x46\x54\x1b\x18\x31\x91\x39\x4f\x6e\xcb\x3d\xa0\xc6\x0c\xc0\x1f\xea\xdc\xb6\x83\x97\x86\x19\x81\x02\xf2\xe0\xc9\x86\xe0\x88\x26\x18\x8f\xba\x31\xa1\x7e\x51\x17\x51\xc9\xeb\xc3\xda\xb4\x70\xc3\x22\xa0\x55\xb6\x31\xf9\xd7\x9e\x1d\xeb\x86\xf5\x5e\xf8\x0b\xaf\x58\xbf\x48\x78\xe0\xc7\x44\x00\x9a\x2a\x16\xe8\xc2\x32\xaf\xd3\x9f\x75\xc6\xb3\xe1\x9e\x32\xff\xad\xcc\x3a\xf6\x9f\xbf\x4c\xd7\xe9\xcf\x0f\x89\xfe\xf0\x2f\xf2\x83\x4c\xbc\x26\xf3\xae\x0d\xc9\xce\x60\x6d\x87\xe3\x3a\xf4\xc2\xac\x0b\x2c\x33\xb5\x13\xb7\x2d\x5d\x78\x99\xa6\x9c\x0c\xe0\xb0\xe1\x45\x86\x6e\xec\x22\x98\x0b\xab\x93\x54\x13\xd7\x89\x5c\x0c\x71\x1a\xe8\xca\x58\x61\x3c\xd5\x01\xa1\x0d\xae\xf3\xf7\x12\x11\xf6\x48\x0b\xab\x4c\xb5\x44\x80\x36\xd6\x0c\xde\xf7\xca\xdf\x87\x15\xe3\x98\x3c\x8a\xea\x1d\x58\xe3\x77\x67\xf2\x56\x43\xdc\x58\xa8\x6b\x6f\x46\x18\x61\xbd\xea\xd4\xa9\xb3\xd4\x97\xe9\x3e\xc3\x64\x16\xde\x82\x17\xf1\x5b\x56\x5e\x31\x1d\x54\x6a\x65\xa0\xf2\x04\x5b\x7e\x86\x18\x56\x3b\x3d\x16\x65\x19\xba\x27\x2c\x83\xc8\x14\xa2\x1e\x1e\x23\x44\xe6\xc3\x06\x23\x10\x21\x38\x8d\x4b\x8a\xef\xa0\x88\x2b\xb9\xf7\x37\xb1\x49\xe3\x8e\xb6\x06\xe8\x81\x46\x87\x58\xe2\xaa\xe9\x88\x86\x96\x26\x04\xa3\x11\xd3\xd6\x3e\x74\xba\xb9\x11\x2c\x7e\x7f\x32\x5e\xee\x85\x39\x7e\x0d\xfc\x08\x99\x49\x54\x52\x5e\x07\x43\x5d\x95\x1b\x21\xaf\x34\xa6\x38\x95\x18\xa9\xfd\x04\x68\xd9\x11\x3c\x7e\x2b\x2d\x5e\x76\x65\xc3\x11\x12\x11\x82\xfb\xb0\x49\xa9\x31\x24\x7e\xf5\xeb\x63\x52\x4b\x12\x77\x4a\xad\xb0\x47\x49\xad\x2e\x30\x8d\x50\x15\x39\x01\xe2\x54\x62\x54\xc5\x4f\x80\x56\x15\x04\x4f\xdd\xc5\x19\x61\x51\xe4\x6c\x8c\x53\x89\xb1\x29\x7e\x02\xb4\x55\x41\xf0\xe4\xed\x92\x78\xe9\x6d\xd7\x00\x10\x89\x10\xde\x8f\x4f\xca\x8e\xa1\xc9\x43\x83\xe1\xdd\x54\xb1\x34\x06\xe3\x88\x9f\x0d\x68\x08\xb1\x0e\x16\xbb\xd6\xc4\x24\x37\xbc\x5f\xa8\x5f\xf8\xc3\x92\x28\x2b\xb0\x99\xf1\x3a\x93\x84\x0f\x78\xbb\x76\x76\xd2\x21\x29\xae\x9a\xae\x4c\xda\xea\x19\x23\x83\xb6\xdf\x39\xde\x61\x99\x19\x77\x58\x0d\x67\xc6\x93\x3f\x06\x79\xbf\x2f\x8d\xe7\x56\x35\xa7\x01\x93\xbc\x7c\x1b\xc7\xa0\x4e\x7b\xde\x3b\x27\x39\xa1\x7d\xd5\xdf\xa4\x3c\xbc\x27\x63\x10\x0f\xb9\xea\x36\x0b\xf1\x91\x6a\x1b\xf9\xaa\x0c\x68\xad\xca\xaa\x0e\x80\x39\x05\xdd\x7c\x3c\x3f\x2e\x25\xc0\xf0\xae\x87\x41\x3f\xb4\x2e\xb0\xeb\x28\x3e\x52\x2c\x86\x27\x2f\x4c\xe5\x0d\x2c\x24\x6c\x1d\x10\x1f\x29\x16\xfa\x31\x08\xa0\x05\xde\x85\xc7\x0e\xcb\xdb\x46\x32\x10\xc7\x66\x90\x81\xf8\x76\x73\xe3\xc4\xd5\x1a\xe3\x67\xab\xa9\xf9\x9e\x2f\xcb\xad\xb6\x96\x5f\x69\x85\x22\xbb\x4e\x62\x26\xd9\x04\xff\x2e\xf6\x53\x71\x76\x06\xd2\x09\x41\x42\xf7\x2d\x62\x9f\x23\x95\x70\xcd\xdd\xd5\x6b\x08\x49\x9b\x91\x92\x42\x78\xc3\xde\x5a\x05\x27\x37\x89\xee\xce\xd7\x00\xea\x7d\xd5\x88\x77\x55\x35\x92\x7e\x41\xf5\x8e\x97\x53\xfd\x2f\xa6\xde\xf3\x52\x2a\xc7\xe1\x86\x9e\x97\x9b\xad\x03\xbf\x5a\x02\xce\x75\x8d\x20\x18\x2e\x94\x0f\x06\x17\x0d\xd2\x1f\x5e\xf7\x30\x57\xed\xba\x98\x47\x52\xc1\xca\xab\x63\x6e\xd5\xb7\x0f\x2a\x1f\x34\x62\x66\xfa\x1f\x8c\x1a\xc7\xef\x9a\xe2\xd2\x0b\x7d\x07\x61\x73\x26\x19\xec\x04\x6c\x15\xf5\xed\x34\x64\x84\xe6\x99\x19\xc5\x4e\x5c\x37\x42\x8c\xaa\x3b\x89\x26\xfd\xc2\xbe\xb1\xea\xc1\x5b\xd3\x97\x36\x78\xbd\x00\xc6\x00\x79\xe3\xb0\x7a\x7a\x49\xff\x5f\x34\x62\x65\x28\x0e\x05\x13\x0c\xe0\xbe\xd0\x1d\x03\x2a\xf4\xa4\x3e\x87\xe4\xc7\x2e\x48\x38\x81\x3a\x90\xc2\x22\x0d\xd0\xef\x44\xe8\x41\x2f\x09\x08\xda\x33\x1a\x62\x78\x85\x05\x01\x42\x1e\x0f\xbf\xef\x0a\x30\x4d\xdc\x94\xfe\xde\xfb\xca\x9c\x7a\xcc\xe5\x5f\x1b\x10\x69\x09\x71\xad\x02\xbc\x92\xaf\x6e\x5a\x28\xec\x50\x04\x1b\x80\xa3\xda\x11\xbe\x58\xe2\xd2\x8f\x51\x47\x51\xf5\x61\x33\x1b\x1b\x31\xa4\xe3\x0a\x1d\x62\xec\x52\x1c\x71\x67\x07\xdc\xf2\x12\x0f\x91\xc3\x4b\x57\xe2\x1b\x76\x27\x0d\x48\x9b\xa8\x3d\x7f\xab\xad\xed\x67\xee\xa7\x2a\x5a\xc9\xd9\xb8\xf7\xad\x2a\x9c\x35\x84\x85\x1b\x58\x35\xc0\x99\xde\xc2\x0d\x6d\xaf\xbb\x27\x0c\xb4\x97\x1f\x42\x0d\x6f\xb7\x3b\x28\xca\x09\x77\xa4\xf6\x79\xe2\xde\x0a\x07\x9d\x6c\x2f\x76\xd0\x7f\xf6\x62\x87\x7c\x63\x2f\xb2\x1b\x47\xd7\xa0\x9a\xe4\xc6\xcc\xcd\xd7\x2e\xa4\x38\xc3\x37\xc7\x31\x39\x40\xb9\x32\xab\x97\x74\xa0\x81\x99\x3f\x21\xea\x2c\x49\x0f\x94\x42\x26\x43\x50\x89\x19\x29\x88\xd4\xee\xdc\x45\xcb\x4b\x0f\x3f\x64\xf8\xce\x2f\x6f\xc6\xf9\x85\x1b\xdb\x26\x5d\x47\x0f\xb9\xc8\x53\x3a\x47\x1d\x4c\xef\xd7\x8a\x67\xf0\xbc\x94\x04\x1f\x44\x4a\x8c\x79\xc2\xc7\x5c\xed\x9f\xe8\xe3\xd8\xb5\xf0\xf5\x3c\x15\x52\x38\xeb\xe1\x30\x5e\xb8\x8f\x38\x8e\x7a\xa1\x8f\x28\xa6\xfc\x39\x71\xbf\xdb\x23\x0a\xbf\x0c\xe0\x39\x2c\x72\x10\x39\x54\xbf\x24\x42\xcf\xad\xde\x8d\x98\x19\xfe\xcf\xed\xb5\x6e\xf2\xe9\xbe\x61\xd9\x6f\x5b\xfe\xdf\x69\xff\x61\x00\x4b\xd8\x79\x70\x6b\x92\xf6\x92\x55\x12\x91\x17\x0c\x5f\x6f\xe6\xfd\x4c\x15\x9d\x3c\x20\xf6\x72\x2a\x70\x3e\x85\x5b\x5b\x52\xe7\x22\xcf\x4b\x36\xbc\xf4\x56\x5d\xcf\x7b\xd6\xe0\x1b\x57\x5c\x6c\xf2\xae\xa8\x08\x1f\x05\xd7\x45\x37\x69\x6a\x3d\xb5\x36\x5f\xac\xdf\x95\xf0\xe6\x42\x4f\x0a\xbe\x43\x2b\xc3\xe1\xbf\xce\x4e\xc5\xcb\x49\xcc\x27\xe0\x09\x2e\x19\xfd\x0d\x3c\x40\x6e\x89\xfb\xf9\x34\x7f\xf8\x3a\x33\x5b\xdd\x2d\x55\x78\x80\xa8\x76\x07\xfb\x12\x1e\x60\x60\x66\xd1\x80\x45\x0b\x33\x2d\x87\x8d\xb7\x34\x0b\x61\xd1\x0a\x89\xb3\xd1\x85\x6b\xd4\xc2\xaa\xd2\x8d\x6b\xa6\x55\xd1\x23\x96\x80\x5b\x55\x11\x5c\x98\xde\xb9\x21\xd3\x66\xeb\xaf\x9c\xbe\xeb\xbb\x6e\x50\x48\xb3\xf7\x80\x36\x0c\x7d\x3f\x80\xe3\x4d\x68\x96\x62\xad\x68\x96\xbb\x0d\x69\x96\x62\x6d\x69\x96\xa3\xcd\x69\x02\xb8\x2d\x6a\x96\x62\x8d\x6a\xa5\x03\xef\xea\xeb\xe1\x34\x3d\x64\x65\x59\x5f\x75\x42\xf0\xfa\x77\x37\x4d\x38\x92\x37\x7c\xcc\x01\xb9\x6d\x8f\xec\x54\xc9\x0f\x31\x67\xe8\xc4\xe3\x69\xe0\xcd\xcb\x21\x94\x3c\xb5\xae\x02\x0c\x6d\xa1\x23\xa7\xf8\x43\x90\xc6\x7b\x92\xfa\x6f\x39\x8b\xa9\xd7\x25\x8d\x3f\xc9\x19\xcf\x78\x78\x12\x8d\x5a\x21\xbc\xd8\x8f\x4e\x64\x87\xac\xc9\x27\xfc\xbf\x53\x19\xff\x9e\x37\xf5\x25\xaf\x5f\xab\xc9\xac\xac\xb3\x9c\x35\x58\xfc\x1b\x3a\xdb\x2d\xe0\x6c\xe7\x9f\xdc\x16\x46\x75\xe5\x5c\xe6\x9f\xba\xac\x1e\x5f\x3e\x0c\x1c\x88\x39\xcb\xc2\x58\x69\x8c\x99\xbe\xa3\x61\x06\x89\x19\xfd\xa8\xff\x1e\x02\xc7\xc0\x2b\xa1\x1b\xd0\xaf\x4e\x88\xd9\xc0\x05\x1e\xb8\xf0\x20\x33\x53\x5d\x56\x50\x5d\x56\x90\x8d\xfe\xdb\x28\x36\x43\xd4\x06\x36\xe0\xd0\x86\xc7\xa8\x19\x5c\xf4\xdf\x43\xdc\x9a\xc9\x45\xff\x6d\x14\x9b\x11\x6e\x27\xc6\x83\x25\x6f\xe4\x53\x83\xbd\x93\x53\xb2\xae\xeb\xc7\xf7\x25\x3b\xf0\x3c\x55\x9c\xa3\xb9\xd1\xc0\x33\x30\x0d\xcf\x0a\x20\xfb\x15\x7a\x9a\x8b\xdd\xb3\x18\xe6\x45\xdb\x7e\x5b\x4f\x7a\x1a\x0f\x9a\x69\x1c\x1e\x96\xa6\x53\x57\xf0\xe8\x4d\x88\xf5\xae\xb4\x3f\xf6\x11\xca\xdd\x5f\x33\x1c\xd7\x78\x24\x33\x1c\x99\xfb\xae\xbc\x9b\x31\x8b\x7f\x42\x68\x6c\x17\xc0\x9d\x50\x95\x02\x7b\xd2\x7a\x0c\x6a\x3d\x33\xf6\x07\xe4\x4e\x4a\xe2\x5c\xb4\x52\xe6\x6a\x50\xa1\x4f\x98\x82\x82\x89\xa8\xac\x9b\x38\x4a\x5f\xa6\x6f\x32\xde\x17\xd9\xc0\x30\x9e\x0c\x46\x93\x4e\x39\xa9\xa6\x9c\x04\x53\x68\x5a\x29\xdf\xfb\x1b\x58\x5d\xb1\x57\x39\x76\x9e\x16\xfb\xf0\x4b\xc0\x43\xc7\x24\xd9\xc4\xfc\xab\x2c\x42\xdb\xb4\x10\xd9\x48\x50\x12\xd8\x5f\x12\xef\x0e\xce\xc4\xda\xd3\x24\x01\x1f\x15\xe6\xeb\x7e\x20\x10\xc8\x71\x91\xc1\xa4\x44\xa9\x05\x3b\x1b\x52\x4d\x02\xd1\xa4\x2f\x91\xb3\x63\x76\x2d\x3b\xec\x0a\x82\x45\xe8\x6b\x59\x6c\xd5\x84\x69\x9f\x19\xc9\xc1\xfc\xa7\x9f\x00\x4e\x5d\x82\x86\xbc\x96\x71\xfb\xdd\xe8\x3d\xc6\xb8\xd7\x5e\xdc\x8d\x00\x7b\x77\xdb\x6a\x6a\x7b\x4f\x02\x79\x66\x79\x80\x06\xfb\xaa\xb0\x72\xa0\xe8\x5a\x92\xdb\xb3\x10\x43\x6c\x83\xba\x94\xc4\x77\x84\xcc\xb0\x03\x0b\x11\xa8\x34\x3d\x10\x8a\xce\xd5\x03\xe1\xa8\x84\x3d\x06\x14\xdf\xe8\x6e\x9a\xfa\x75\xda\xb2\x4b\xd6\x64\x5d\xdd\x38\x2a\x22\x95\xe2\xbf\xfd\xd7\xff\xe3\x27\x07\x77\x7f\x2d\x4b\xd6\x45\x20\xff\xaf\xff\xa7\x8b\x9c\xd7\x11\x98\xff\xef\xff\xed\x22\xf2\x4d\x3e\x96\xb7\x11\x7c\xff\xf7\xff\xe7\x27\xe1\x5b\x92\x21\x1d\x46\x0e\xd8\x7e\xca\x5c\x5e\xde\xec\xf7\x4f\xe6\x0f\x13\xf1\xd0\xd7\x1c\x2b\xb3\xb6\xa7\xed\xd9\x9b\x7b\xb4\xbd\xef\x62\xcd\x7b\xca\xce\x03\x01\xe6\x32\xc5\xa2\xcb\x04\xda\x29\x83\xe8\x54\x2c\x2d\x91\x11\x09\xd7\x86\xf4\xf8\x84\xf9\xa5\x06\xa3\x26\x17\xf6\x0e\xaf\xa8\xf3\x0b\x13\x8b\xca\xc0\x45\x2c\x83\x22\x76\xf4\xa1\x70\xe2\x76\x8c\x75\x35\x96\x97\x48\x6c\x7d\x1c\xa8\x6f\xb8\xf6\x85\xc7\xba\x36\x5e\x43\xe3\x97\x48\x1c\x97\x29\x34\x33\x03\x52\x1c\x2e\xce\x36\x86\x2f\x7c\x8f\x69\x00\x83\x3d\x79\x54\xd5\xa8\x8d\x40\x58\x43\x41\x21\x99\xf1\xeb\xed\xb1\x19\x03\xd4\xca\xec\x86\x79\x61\xd8\xd6\x95\x42\x30\x26\x31\xfd\x6d\x7a\x66\xd5\x75\x02\x40\xf4\xa1\xb1\xca\x2d\x09\x60\xed\x9e\x36\x31\xe5\x81\x14\x84\xe7\x93\x00\x77\x94\xf4\x61\x94\x89\x73\xbd\xd8\x08\xca\xc1\x37\x9c\x76\xd5\x04\xab\x61\xdb\x98\xab\x8c\x78\xaa\xb8\xff\xad\x67\xf0\x4e\x48\xca\x5d\x16\x79\x19\xca\x58\xaf\x2d\xec\xdb\xee\x2b\x73\x61\x0e\x2e\x0c\x72\x59\xd4\x35\xc1\x45\x2a\xfd\xbb\x89\x74\xf3\x06\xdb\x26\xaf\xeb\x59\x17\xac\x86\x4b\xee\x5a\x3e\x35\x34\xbc\x91\x6e\xf8\x03\xf5\xf7\x1a\x4a\xab\x29\x67\x6e\x9a\x00\xa8\x5e\x62\x3c\xc1\x4d\x33\x6a\xf5\x37\x7b\x12\xdb\x9f\x70\xcb\x6c\x3d\x8c\x97\x25\x2f\x4f\xf0\x9b\xec\xef\xb3\xbe\xbb\xa6\x65\xd1\x76\x93\xd9\x99\xb5\x6d\xf6\xc2\x94\xd1\x76\x36\xe1\x32\x4b\x40\x78\xa4\xc8\x33\x18\x20\x0e\xb9\x85\x15\x08\x74\xb0\x0e\x05\x2d\xe4\x61\x18\xc5\x9d\x92\x69\xe4\xbc\xf8\x56\xe4\x28\x5b\xb0\x44\x84\xd9\x47\xe1\x82\x4e\xaf\xa8\x45\x6f\x25\xbd\x2a\xf2\xd4\x18\xe2\x9f\x89\xf8\xe7\xab\xf8\x07\x37\xae\xf2\xcd\x97\xe7\x89\xfa\xdf\x6c\xfd\xf0\x3e\x2b\xd9\x37\x56\xca\x8b\x5b\xba\x37\x92\x4c\xf7\x07\x96\x7b\x9b\xe3\x60\x16\xd7\xb6\x9e\xbc\x2b\xa6\x7b\xd6\xbd\x32\x56\x49\xbc\xd8\xf5\x3d\x07\xe6\xe4\xcd\x8b\xb7\xe6\x57\xf3\x13\x77\xd0\xea\x7d\x51\xb2\xc4\x80\x89\x48\x7b\x22\xea\x5f\x9c\x5f\x6c\xab\x2a\xda\x1f\x33\xab\x03\x7d\x87\x39\x29\x4d\x6f\x1f\xc8\xc2\x46\x04\x95\x8a\xbe\x83\xf3\x9c\x87\xdc\x57\x13\xdb\xdc\xc7\x4f\x49\x34\x3e\x70\xd0\x74\x40\xa1\x46\x9c\x11\xe9\x36\x46\x24\x68\x11\x5a\x83\x54\xef\x97\x58\x66\x46\xe5\xbd\xbd\x3c\x31\x5b\x26\x4a\x1f\xac\x54\x20\x46\x6b\x21\x5a\x6e\xb8\x12\x7c\x7a\xa3\xf7\x8c\x29\x37\xcd\xd1\x09\xd9\x89\xd1\x94\xa9\xa6\xe0\x81\x66\x25\x7b\x2b\xf6\xc3\x60\x71\x5a\xc1\x04\xa2\xda\x37\x66\x74\x1b\x8b\xc8\xa8\xbc\x40\xf1\xe3\x12\x68\xa5\x5f\xd9\xe7\x33\xd0\x67\xa2\x3c\x56\xf8\x7e\x2d\x38\x56\x83\x91\x6e\x03\x3a\x2d\x0d\x33\x90\xc1\xc8\x0f\xed\x04\x98\x4a\x33\xae\xe4\x8a\x6c\x19\xd3\xf8\xc3\xd4\x3c\x60\x66\x47\xa0\x69\x56\x13\x04\x2e\x26\xa1\x15\xc6\x43\x08\x86\x78\x19\x08\x98\x9a\xb5\xcc\xdc\xb5\x06\x30\x52\x3c\xb7\x5d\x98\xf9\x00\x3e\x1b\xf2\xa4\xb8\x78\xae\xf3\x33\x37\x59\xc9\xbe\x15\xbf\x8f\x1e\x92\x03\x09\x68\x56\x0c\xe1\xa0\xfe\x8a\x88\x08\xa3\x54\x79\x87\x34\x53\x2b\x0d\x1b\xa6\x4e\xd5\xd5\x39\xd5\xeb\x3f\xfa\x36\x3a\x54\x39\xbd\xc5\xa1\x20\xa8\xcd\x0d\xc3\x75\xb8\xe1\x81\x63\xf2\x84\x0a\xd9\xbb\x33\x70\x23\xfd\x33\x15\x4b\x6c\x60\x8e\x75\xce\x06\xd4\xb2\x48\xae\xfa\x85\x70\x15\xa4\x62\x2d\x48\x95\xef\x05\x82\xd9\x86\xf8\x36\x45\xce\x4c\x2b\x2d\x52\x08\x99\xbe\x32\x47\xb6\x8e\x4a\x66\x73\x88\x4d\x47\xf5\x70\x65\xc5\x80\x3d\xae\x94\x00\x97\x7e\x1c\xd5\xa6\xae\xb2\x70\x84\x58\x3f\x4d\x82\xfb\x22\xd8\x15\x08\x4c\x27\x20\xfe\xe8\xb2\x17\x2c\xb1\x80\x50\xec\x9c\x1d\xea\x46\x9c\xbe\x5c\xab\x9c\x35\xbd\x63\xa6\xc9\xf9\x15\x5a\x83\xf8\x74\x5a\x03\xd1\x6a\xad\x41\xbc\xf7\xf1\x6d\xb8\xc4\x5e\xce\x44\xc5\x20\xd2\x54\x78\x06\x36\xf2\x1e\xd4\x2a\xef\x7f\x00\x3e\x15\xbd\xa8\xe2\xa7\x6d\xd0\x08\x81\x91\xc0\x47\x9a\x0a\x22\x30\xc4\x47\xea\x4c\x46\x4d\xba\x32\xcb\x67\x88\xc3\x8d\xec\x5e\xb7\xa2\xa9\x60\x8d\x0c\xf0\x57\xc7\xfe\x07\x90\x20\x02\x37\x8f\x4f\xc7\xec\x78\x70\x20\x23\x24\x46\x42\x3e\x49\x22\x88\xc0\x06\xfa\xfc\xb0\x78\x16\x46\x52\xa3\xd3\xb1\xa2\xc7\xcd\x31\x3f\xee\x31\xe0\x18\x99\xdd\xcb\x2f\x3e\x3a\x98\xd8\x80\xc2\x3c\x5d\x3e\x2e\x9e\xac\xae\x42\x63\x53\x8f\xeb\xe3\x93\xc5\x4e\xbc\x0a\x1a\x94\x19\x9d\x12\x08\x22\x88\xc0\x10\x3d\xdd\xac\x36\x07\xd8\xd4\x45\x75\xac\xe3\x04\x16\xaf\x6e\x7e\x50\x60\x48\xe4\x1e\x81\xe9\x10\xde\xe3\xe3\x31\x3f\x3e\x62\xc0\x31\xba\xe1\xc6\xff\xfa\xe8\x60\xba\x01\x28\xcc\x1f\x57\x8b\x39\x54\x54\x4f\xf8\xf0\xf1\x98\x59\x23\x48\xbf\xcf\x18\xb6\x1d\x6e\xec\xb1\x8f\x0e\x66\x3d\x00\x85\xc7\xc5\x92\xa5\x7b\x6b\x38\x13\xa1\xcb\x7d\x83\x5b\x4d\xae\x1e\x19\x0c\xca\x8d\x84\x3d\x7b\xc8\x20\x62\x43\x02\x4f\xd9\x72\xb1\x18\xc4\xc6\x0e\x55\xc8\x60\x02\x78\xc3\xd6\x7d\x59\x6b\x87\x44\x32\xa1\xe7\x10\x60\x23\x09\x71\x22\xf1\xbd\x45\x53\x60\x7d\x99\x80\x5e\xad\x83\xc3\x4b\xe5\xd6\x99\x34\xbe\xa2\xad\xe6\xdc\x66\xa1\x6f\xa2\x18\x25\xf2\x8c\x18\x21\x88\xbe\x50\x64\xef\x0b\xc3\x06\x36\x1f\x88\x9b\xcb\x17\x6d\x4c\xca\x7a\x7f\xcf\xf8\x74\xa1\x62\xca\xde\x1d\x38\x3b\x3d\x93\x1b\x91\x22\x37\xc6\x7d\xa7\x30\x7c\x73\x93\x38\x5e\xd1\x91\x38\xa7\x22\xcf\xfb\x0e\x56\xbd\x79\x2c\xde\x58\xee\x6e\xc0\x1b\xce\x3e\xdc\x4f\x72\xf6\xe5\xdd\x6d\xfd\x50\x9c\xd8\xd3\xe6\x41\x87\x71\xf0\xe0\x38\xf9\xbb\x5c\x9a\xc9\x95\x40\x9a\xd8\xc1\x7f\xfc\x29\xa7\x79\x9a\x7e\x3b\x25\xd3\x64\xbe\x49\x2f\x6f\x0f\x3b\x18\x61\x44\xc5\xfe\xf1\x13\xcb\x11\xdb\x10\x11\xc2\xe9\x88\x26\x4c\xb8\x15\x97\x4d\x25\x1e\x4b\x2f\x7c\xcf\x62\x88\x5b\xb9\x39\x81\x23\x7f\xd5\xd8\xca\x71\xf1\x94\x30\x67\x98\xda\x2e\x5f\x81\x50\x4b\xa1\x44\xcd\x40\xb2\x1f\x7e\xfc\x17\x99\xa3\x8d\xc7\x5e\x1a\x2d\xa0\x02\x30\xcd\x4f\xde\x28\x4c\x32\x1e\x4b\xe7\x0a\xc3\x8f\x97\x3e\x96\x3d\x2c\x14\xdb\x89\x88\x8f\x87\x6a\x3a\x55\x27\xe2\x35\x4d\x38\x19\xb4\x69\x7e\x8a\x8f\xdc\x04\x0c\xe3\xc3\x37\x0d\xb4\x1f\x1d\xc3\x69\xb1\xfa\xa1\x81\x9c\x16\xaf\x1f\x19\xcd\x39\x98\x0e\x24\x9f\xb7\xf3\x06\xa9\xdf\x80\x58\x46\xdb\x24\xce\x8f\xc6\x27\xe6\x87\x7e\x02\x1d\x15\x80\xe8\x8a\x17\x11\xcc\xa4\x27\x42\x3c\xd6\x1a\x88\xd8\x4f\x6e\x93\x59\x95\x7d\xdb\x67\x8d\xfa\x37\xbc\xce\xb7\x6a\x04\x2e\xa4\xd2\x13\xb7\xed\x22\xac\x3d\xaf\x0c\xad\x61\x3f\x4d\xd1\xfb\x27\x64\xfc\x82\x93\xd5\x1d\x9c\xa3\x3a\x7d\xe4\xb9\xad\x6b\xc8\x88\xdd\xb7\x85\x55\xc0\x22\x1c\x2c\x56\xfa\x75\x17\xff\x19\xcc\x3c\xb5\xea\xcf\x3d\x23\x7a\x03\xd4\x9a\x62\x8d\xfe\x7f\x97\x9d\x3a\xed\xb2\xbd\xc8\x09\x32\x84\x51\xea\x50\xce\xf6\xd0\xd4\x65\xd9\xa3\xf0\xa8\x48\x85\x73\x33\xc7\x94\xbc\xf1\x8b\x25\xcb\x84\x5a\xe3\xa8\x51\xa2\x44\xd8\x37\xfd\x8c\xae\xfe\x12\x71\x9f\x5e\xd8\x5f\xd4\x5f\xe6\x61\xbc\xce\xe6\x18\xcd\x65\x66\x3c\x57\x14\x8f\xa5\x1e\x83\xf1\x4b\x98\x99\x22\x46\x33\x82\x68\xf4\x7e\xef\xa2\xff\xb1\x37\x8b\x46\x54\x01\x24\x49\xb6\xf2\xdb\x79\x7d\xad\x79\xda\x5b\xe5\x87\x1b\xc9\x8c\xdd\xd1\xc6\x36\x4e\xa8\x85\xd9\x3d\xed\xeb\x20\x85\xb8\x70\xc2\x3c\x24\x10\x09\x14\x8a\xd2\x55\x87\x82\x0a\x1d\x8a\xc2\xe6\x36\x7b\x74\x5b\xba\x58\xa1\x7a\x72\x8c\xf1\xed\x89\xa0\x7d\x92\xbe\xda\xea\xe0\xef\x53\x53\x80\x31\xcd\x12\xaa\xd9\x3d\x26\xc6\x51\x64\xe5\x2b\x8f\xe8\x2d\xdf\xd0\x24\xe9\x28\x05\x4b\x88\x6e\x8c\xda\x61\x37\xc9\x8f\xb8\xdf\x6f\x21\x45\x5a\x75\x04\x16\x6d\xf2\x91\x2c\x70\xcd\x0d\x61\xb9\x43\x04\x13\x2f\x62\x88\x04\xd1\xc8\x21\x92\xa6\xe9\x9d\xad\x8a\x6b\x4c\x4f\x64\xac\x25\x87\x9c\xe2\x2c\xb9\x1f\x27\xd4\xb0\x91\x96\x3c\x80\x14\xe2\x72\x8f\x25\x0f\x50\x08\x58\x72\x88\x1d\x6b\xc9\x43\x58\xa1\x7a\x46\x5b\xf2\x20\xda\x87\xd5\xd4\x67\xc3\xdd\xde\xa4\x6c\x78\xa8\x41\x42\x75\x1a\x6d\x50\x22\x0c\x78\xb0\x93\xc8\xe1\x48\x12\xb9\xc3\x7a\xbb\x76\xd8\x24\x1f\x48\xba\x68\x1e\xf8\x59\x48\x91\xd6\x1b\x81\x45\x1b\x7b\x24\x0b\x5c\x5b\x43\x58\xee\xb0\xc0\xc4\x8b\x18\x16\x41\xb4\x40\xe6\x88\x3b\x1b\x16\xd7\x98\x9e\xc8\x58\x03\x0e\x39\xc5\x19\x70\x3f\x4e\xa8\x6d\x23\x0d\x78\x00\x29\xc4\xe5\x1e\x03\x1e\xa0\x10\x30\xe0\x10\x3b\xd6\x80\x87\xb0\x42\xf5\x8c\x36\xe0\x41\xb4\xcf\xd0\x54\x9f\x0d\x77\x3b\x94\xb2\xe1\xa1\x36\x09\x55\x6b\xb4\x59\x89\xb0\xe1\xc1\x7e\x22\x47\x24\x49\xe4\x1e\x0f\xdc\xb1\xc6\x26\xf9\xf8\xa4\x57\x10\x27\xd2\x82\xbb\xa0\xf8\x6c\x39\x96\x07\xae\xaf\x01\x24\x77\x5c\x20\xe2\x45\x0c\x8b\x10\x16\x39\x2a\xe6\xd9\x62\xb3\x5c\xde\xdd\xb0\xc4\x9c\x2f\xc8\x8c\x35\xe2\x80\x57\x9c\x0d\xf7\xa2\x04\x1a\x37\xd2\x82\xfb\x71\x02\x3c\xee\xb1\xdf\x7e\x02\x01\xf3\x0d\x90\x63\xad\x77\x00\x29\x50\xc7\x68\xdb\x1d\xc2\xfa\x1c\x25\xf5\x19\x6f\xa7\x2f\x29\xdb\x1d\x68\x91\x40\xad\xee\xb0\x27\x11\xb6\x3b\xd4\x4b\xbe\xa1\x48\x91\xb9\xc3\x78\xbb\x76\x18\x52\x17\x71\x24\x21\x8b\x61\x56\x4c\x04\x29\x8d\xc1\x10\x71\x58\x63\x30\x74\xb4\xd9\x18\x24\x1d\x86\x34\x06\x49\x47\x00\x8d\x35\x9a\x70\xa1\x14\xf1\x5c\xd2\x88\xca\x05\x9b\x22\x66\xc5\x18\x66\x83\x8f\xfb\x88\xb6\x77\x2c\x0c\x2e\x64\x84\x91\x89\x40\x24\xed\xcc\x62\x9e\xad\x1f\x17\xbb\x0f\x6c\x24\xd9\xdc\xe3\x66\xb1\x10\x56\xb8\x79\x22\xe7\xb2\x20\x5a\x98\xd3\x3d\x33\x5a\x90\x46\x60\x52\xb3\xf1\x63\xe7\xb5\x30\x5e\xb8\xbe\xd1\xb3\x5b\x04\xe2\x08\xc5\x1b\xa1\x1d\xa1\x0e\xa6\xe6\xb8\x70\xeb\x84\xab\x77\x87\xd5\x88\x98\xe9\x22\xfa\x6d\x84\x09\xfd\xd0\x64\xe7\x84\x30\xbf\x5b\xd3\x50\x5c\x48\x6e\xf4\xd4\xe5\x9f\xe5\x62\xda\x3b\xc0\x80\x5a\x56\xfb\x27\x54\x64\xf9\xee\xc8\x16\xb5\x7a\xf7\x63\x79\x76\x5f\xd7\xab\xe3\xfe\x23\x96\x19\xb0\x8e\xdd\x20\xf2\xa0\x04\x9a\x24\x7a\x7b\xc8\x87\x13\xe0\x71\xdf\xe6\x90\x8f\x40\x70\x6f\xa8\x1a\xbf\xb8\x08\x20\x05\xea\x38\x62\x63\xc8\x8f\x35\x42\xb5\x62\x55\xc0\xdb\x91\x94\xd5\x0d\x34\x47\xa0\x4a\x63\xc7\x7f\xd4\x96\x90\xbf\x7f\x62\x2c\x2d\xa0\x71\x87\x99\x75\x2d\xa6\x49\x9d\xb8\x33\xe1\x35\xb3\x81\x35\x85\x7f\xf9\x11\xd3\xcc\x01\x06\xb8\x92\x86\x56\x3a\xce\x58\x40\x64\x8b\x18\x0b\x21\xac\x1f\x68\x66\x01\xeb\x38\x33\xeb\x45\x09\x34\x49\xa4\x99\xf5\xe3\x04\x78\xdc\x63\x66\xfd\x04\x02\x66\x16\x20\xc7\x9a\xd9\x00\x52\xa0\x8e\xd1\x66\x36\x84\x75\x9f\x99\xf5\xaa\x80\xb7\x23\x29\x33\x1b\x68\x8e\x40\x95\xc6\x8e\xff\x08\x33\x1b\xea\x9f\x18\x33\x0b\x68\x7c\xba\x99\x1d\xf5\x58\x83\x83\x16\x69\x6c\x51\xe8\x98\xf6\x0e\xb3\xc1\x15\x36\x62\x0f\xc7\x19\x1a\xb8\x90\x11\xa3\x23\x02\x91\x5e\x03\x3e\x3f\x1f\x96\x1f\xda\x7c\xb0\xb9\xc7\x99\xdf\x10\x56\xb8\x79\x22\x8d\x70\x10\x2d\xcc\xe9\x1e\x53\x1c\xa4\x11\xb0\xc6\x36\x7e\xac\x41\x0e\xe3\x85\xeb\x1b\x6d\x96\x23\x10\x47\x28\xde\x08\xed\x08\x75\x30\x65\x9f\xc3\xad\x13\xae\xde\x1d\x56\x23\xc2\x50\x47\xf4\x5b\x8c\xad\xb6\xc9\xdc\xb3\xf9\xe0\x98\x5d\x10\x07\x39\xe6\x75\x1c\x07\x2d\xd2\x5c\xa3\xd0\x31\x0d\x1f\x66\x83\x2b\x72\xc4\xee\xb9\x1b\xd5\x8b\x0a\x19\x13\xd7\x1b\x46\xa4\x23\x7b\x9f\x9f\xe6\x30\x0e\x69\x74\xf8\xb8\xc5\x3d\x32\x80\x3c\x80\x15\x6e\x9e\xd8\x20\xf2\x10\x5a\x98\xd3\x5d\x81\xe4\x21\x1a\xa1\x50\x72\x0b\x3f\x3a\x98\x3c\x88\x17\xae\x6f\x7c\x40\x79\x18\x71\x84\xe2\x8d\xd0\x8e\x50\x07\x53\xe6\x3a\xdc\x3a\xe1\xea\xdd\x61\x35\x62\xc2\xca\xc3\xfd\x16\x63\xae\x6d\x32\xf7\x44\xb5\x38\x66\xd7\x3d\x18\x8d\xbb\x97\x6f\x63\x45\x1a\x6b\x0c\x38\xa6\xd5\x83\x4c\x70\x25\x0e\x1f\xf5\x22\x71\x03\x88\x84\x51\x91\x03\x21\x3c\x72\xb8\xec\x57\xcb\x6c\x71\xfc\x88\x9d\xb6\x98\xc7\x06\xa6\x78\x91\x82\x4d\x13\x1d\x9c\xe2\xc7\x0a\xf2\xb9\x2f\x40\xc5\x4f\x22\x18\xa2\x02\xd0\xe3\x83\x54\x02\x68\xc1\xba\x8e\x08\x54\x09\xe1\x8d\x50\xb7\x78\xa5\x08\x74\x2c\x65\x9b\x83\x0d\x13\xac\xda\x78\x1b\x11\x15\xae\x12\xea\xaf\x18\xbb\x6c\x51\xb9\xc3\x2c\xbb\xf6\x55\xd1\xff\x85\xa7\x32\xcc\x8a\x8a\x48\x06\x0f\xee\x1a\x23\x37\x3f\xcd\xc4\xf2\x52\x62\x9e\x0f\x9f\xe7\x65\xbe\xc5\xa5\x68\x36\xeb\xca\x13\x12\xc8\x5b\xb5\x13\xe7\x7b\x57\x5f\x54\x3a\x69\x34\x85\x41\xaa\xf3\x61\x2c\x53\x8a\xea\x6d\x48\x70\x8b\x03\x90\x15\x98\x8e\xa8\x41\x2f\xa9\x48\x38\x7b\xea\xce\x25\x27\x29\x3b\x6b\x28\x37\x73\x2d\xca\xf6\x24\xa0\xa5\xe4\x56\xba\x6a\x85\x03\xa6\x04\xd5\x68\xfc\x6a\x6f\xb8\x4b\xad\x34\x2f\x4e\x07\x83\x9b\xc2\x37\xf0\x94\xc0\xb7\x57\xe7\xd9\x17\xfd\xf7\x77\x7d\xf3\x5d\xc9\x76\x6d\xfa\xa9\x9f\xc8\x85\x01\x12\x3a\x93\x97\x8a\xd5\x75\x7d\xe4\x99\x61\x91\xea\x1c\xf0\x12\x6f\x21\x8e\x79\xeb\xd2\x48\x28\xcd\x89\xf2\x8b\xfd\xeb\xf4\xe7\x64\x9a\x3c\x5d\xde\x1e\xe2\x9f\x10\x13\xdf\x39\xec\x34\xbf\xca\x2c\x7d\x4f\x9b\x73\x6b\x16\x5c\x9a\xfa\xc2\x9a\xee\xfb\xd6\x16\x71\x52\x5f\xb2\x43\xd1\x7d\x9f\x68\xea\x26\x5a\x57\x9c\x7b\x15\x38\x5e\x2b\x91\x8f\x80\x65\x2d\x9b\xd6\xd7\x0e\xa4\x68\x70\x1b\xc2\x78\x3f\x7c\xfe\xc0\x35\xd3\xa8\xdd\xe6\xf2\xf6\x10\x40\x5a\x38\x48\xf3\x30\xd2\xd2\x42\xfa\x9a\xac\x5c\x24\x6f\x6e\x8c\x74\xd2\xff\xcc\xd2\xb5\x8d\x65\x4c\xd1\x48\xf5\xdc\xbc\x21\xff\xf2\x65\x7d\x79\xb3\xb2\x84\x44\x93\x5c\x3c\xdc\x64\x9f\x0c\x56\x23\x88\xb4\x24\xe4\x98\x9a\x82\x4c\x2d\x49\x9c\x1c\xfd\xef\xd8\x8c\x27\x82\x2e\xa4\x35\x47\xd3\xd0\x93\x49\xe7\x7d\x29\xe7\x29\xaf\x00\xf3\xa6\x32\xc2\x59\xc9\x5c\x6f\x24\x18\xfc\x2e\xb6\xe4\x41\x4d\xe9\x54\x54\x00\x8c\x27\x27\x37\x33\x9b\xa8\xac\xbe\x94\x5b\x76\x33\x5e\x3c\xb3\x2a\xcb\xde\x2e\x19\x7f\xae\x95\x4c\xa8\xe0\xa0\x74\xd9\x9e\x4c\x73\x61\xbe\x49\x86\x65\x4c\x80\xa6\x9c\x0f\x11\xd1\x39\xd6\xc8\x32\x78\xb9\x8e\x9a\x59\x4a\x35\x36\xf2\x72\x9a\x4c\x5a\x41\x37\xbf\xc3\xd0\x4a\x86\xd1\x76\xdf\x4b\xb6\xe5\x15\xb5\x68\x4a\x13\x3d\xa4\xe1\x92\xe7\x2d\xbe\xfa\x2e\xcd\xfa\x82\x3c\xbf\xde\x5e\xe0\x83\x00\x3e\x75\xb0\x10\x0f\x2b\x59\x8e\xd2\xcd\x7d\x94\x21\xf6\xe1\x07\xdb\xe5\x02\x3a\x0a\x92\xdd\x5a\xf9\x93\x1b\x35\xf4\x00\x99\x7b\x1e\x3b\xe0\x7f\xd0\x6f\x1d\x78\xd3\x8b\xcf\xd3\xc5\xd2\x58\xc9\x99\xce\x9e\xf5\x64\x09\xba\x80\x05\x36\xa7\x77\x00\x60\xfd\x83\x8f\x97\x99\x46\x2d\xe2\xb1\xa3\xa7\xcb\x5b\xd2\xcf\x5f\xf4\x43\x1d\xc3\x0b\x0f\x06\xe9\x99\x9b\xf1\x0c\x54\xca\xf6\xef\xc4\x23\x6f\xa8\x73\x29\x8a\x3e\xec\x62\x4a\x32\x21\x47\x53\x80\x7d\x96\xbb\x29\x99\xca\x57\x0e\x10\x80\xc4\x6c\x34\x4f\xf5\x01\x5c\x30\x2d\x0c\x99\x09\x49\x5a\x3a\x2b\xd3\x1b\xed\x0e\x4b\xf9\xc7\x3a\xc5\x16\x9a\xe5\x1a\x8f\xda\xe8\x98\x18\x2b\xbb\x09\xd6\x58\x62\x01\x17\x74\xaa\x3d\x99\x72\xcc\x8e\x31\x0c\xf3\x87\xb6\x22\xa2\xe9\x38\x8f\x18\x45\x10\x8c\xd8\x29\x20\xc1\xdd\xcd\x08\x14\x94\xde\xee\x20\xc1\x23\xe6\xba\xbf\x2b\xce\x97\xba\xe9\xb2\xaa\x0b\xb5\x39\xbe\x9e\x1e\xf7\x1c\xce\x5d\x2c\xfc\x3b\xa9\x3e\x17\x49\xae\xa6\x22\x1d\xc5\x58\x3b\xed\x7a\x4b\x88\xa6\xd3\xd0\xfc\xd9\x2a\x64\x6f\x63\xf0\x82\xa5\xd3\x3b\x5f\x72\xa7\x77\xc8\xe1\xf7\x85\xe7\xe5\x9c\x4c\xf9\x3f\x0f\x71\x1c\xb4\x8c\x91\x79\xc6\x86\xdc\x5c\xc9\x5a\x66\x58\xb5\x32\x8e\xee\xcc\x47\xb6\xa0\x25\xee\x67\xa6\x27\x74\x62\x1a\xde\xd9\x42\x3b\xd6\x11\xd7\xf1\xdc\xa8\x41\xe9\xbc\x68\x06\x27\xea\x00\x9b\xbe\x68\x5f\xbf\xb1\x7c\x34\x3f\x8d\xa9\x97\x3c\x73\xfb\x09\x4f\xbe\xd4\x47\xd7\x36\xe9\xc3\x3b\xbd\xbb\x65\xf6\x8d\xf4\x0a\xc1\x4b\x70\xa0\x43\xd2\x21\x71\x64\x42\xbc\xe4\x2b\x5e\xc7\x75\x5f\x17\xf5\xad\xd3\xb7\x70\xdd\x45\x2e\xe0\xc5\xfc\xc0\x39\x18\x6f\x0c\x4c\x67\x4b\x9e\x51\x57\x39\x77\xf3\x5e\x5f\x55\xb6\x4a\xe8\xee\x90\x69\xe8\xde\xe1\x5c\xe2\x49\xd8\x07\x72\xbf\x01\x1d\x63\x95\xfb\xcc\xa1\x7a\xb4\x85\xde\x16\x19\x46\x8c\xef\x81\xb5\xcf\x4f\x77\xe7\x3a\x79\xf8\x50\x02\x0e\x2f\xf2\x8e\x9a\xf3\x58\x5d\x4a\x26\x0f\x75\xde\xa6\x8b\xf1\xe3\xe1\x8b\x6c\xd8\x0b\xc6\x5e\x6b\x8e\xbc\xba\x16\xc0\xb8\x6b\x8a\xf9\xf4\xb9\xc4\x1d\xf8\x8e\xc5\x44\x2c\x65\x4c\x8f\x7a\x9f\xde\x83\x43\x5a\x6f\xaf\xa0\x03\x5a\x6f\x22\xf5\xfd\x9a\x7c\x4d\xbe\x4c\x7b\xb7\xed\x01\xb7\x41\x7c\x7f\x65\xdc\x0e\x9c\xb3\xe1\x86\x36\x8e\x78\x9f\x06\x79\xba\xd1\x5a\xdd\xd9\xcf\x7e\xaa\x25\x97\x3a\x62\x48\xd0\xfd\x5a\x63\x6d\x06\x01\xc0\x8b\x38\x53\xf1\x0e\x09\x4d\xd3\x74\x57\x31\x92\xdc\x38\x01\xcb\x22\x49\x12\x4b\x94\x9c\xb5\xbf\x75\xf5\x05\x5f\x2e\xc8\xc2\x8f\xaf\x97\x14\xa1\xe0\x8a\x49\x02\x7e\xda\x9a\x49\x31\x0e\x6c\xd5\x6b\xb8\xd1\xab\x13\x1b\xd1\x5a\x9f\x04\xb7\xdc\xa0\x73\x6c\xa5\xa2\x23\xb0\x45\x1a\x51\x6e\x5c\x1e\x28\x4a\x26\x4c\x20\x7d\xf9\x9d\x4b\x93\xa8\x33\x51\xd2\x58\xbd\x8b\xc7\x7c\x12\xf8\xf0\x22\xdf\x83\xc8\x6e\xc3\x18\xde\x0e\xbd\x9f\xcc\xe6\x6d\xc2\x77\xc3\x8b\x6a\x5a\x5f\xbb\x77\xe3\xb1\x78\xeb\xd5\x27\xb5\x87\x32\x55\x8b\xb2\x01\x72\xe6\x79\x39\x07\x42\xd1\x8f\xe7\x40\x38\xea\xfd\x9c\x01\xca\x7a\xf8\xbe\x45\x1f\x69\x8b\x79\x8b\xd8\x78\xf1\x4a\x25\xba\xfe\xc4\x77\xf6\xb1\x14\xc5\xb6\x63\x87\x6c\x36\xe2\x2f\xb6\x82\x2d\x2e\xf3\xb1\x5e\x95\x18\x9a\xaf\x05\xa8\x7d\x6c\xb8\x8d\xc8\x9d\x32\xb9\x6f\x0a\x36\xf1\xb0\x62\xe7\x50\xc9\x49\xe9\x6e\x74\x95\xf3\xa2\xd5\xda\xd9\xe2\xe3\x9f\x88\xfe\x50\x5b\x75\x62\xcb\x17\xed\x9d\x8a\x95\x22\x05\x7c\x52\x54\x97\x6b\xf7\x97\xee\xfb\x85\xfd\xf9\x70\x62\x87\xdf\xf6\xf5\xdb\xaf\x13\x09\xc1\xdf\xab\xb6\xdf\x63\x84\x4a\xa4\xbb\xd7\x5c\x4a\x13\xc5\x3c\x41\x79\xbf\x36\x40\xca\xb7\x1e\x5c\x95\xd9\xdc\xd2\x1f\x82\xa3\x2a\xc2\xb8\xf1\xd5\x01\x81\x83\x70\xe9\x95\x92\xe0\xa2\x8a\x30\x2e\x7d\x19\xc6\x85\x7f\x77\xb9\x28\x4d\x27\x38\x99\xc5\x18\x37\x55\x8e\x71\xd4\x65\x1c\xf1\x56\x5f\xbb\x5e\xb3\xfb\x89\xee\xbe\xb1\x08\xe3\x05\xd4\x4b\x6c\x43\x1e\x75\xf9\xd0\x85\xdd\xb2\x72\x43\xc6\x6e\x0a\xf7\xb3\x96\x57\xba\xa8\x80\xdd\x7e\xdd\xff\xd8\x0f\xce\xc5\xf5\xa2\xa7\xd9\x65\xdb\x60\x6f\xf3\xb8\xd4\xa9\x5e\xf5\xb5\xbd\x3e\xca\xd0\x56\xa8\xa8\x5a\xd6\x25\xe4\x2b\xf7\x8b\x07\x87\xf1\x5f\xf2\xa2\xed\x57\xcf\xf9\xaf\x0e\x6f\xa2\x48\xb1\x1f\x8a\x43\xfb\xff\xce\x47\x68\x35\x65\xa9\x7c\x44\x4f\x79\xce\xb3\xf5\x7b\x9c\xea\xb8\x4f\xf4\xd9\x16\x8d\x7f\xc3\xd6\x3f\xc8\xe0\x96\xc7\xe9\xf4\x45\x1b\xdf\x53\x4b\x47\xd1\xb3\xbd\x85\x3b\xb1\xac\x17\x41\x4c\xf1\x7a\x29\xa2\x5e\x3d\x9c\x64\xa6\xa9\x94\xdf\xf8\x3b\x7f\xee\x77\xda\xa5\xc0\x4c\xda\x0d\xea\x34\xb2\xfa\x78\x77\x66\x67\xbe\xd4\xee\x5b\x64\xcb\x9b\x25\xea\x81\x57\xd3\x17\x81\xe8\x36\xf9\xa4\x2c\x22\x8d\x00\x7d\x44\x36\xe6\xc9\x14\xb4\x76\x68\x3e\x79\xcf\x5e\x85\xf4\x03\xde\x51\x39\x45\xe1\xc2\xd1\x4f\x59\xb0\x04\x9e\x5a\xe0\x9d\x6c\xe8\x5b\x89\x79\x94\xe5\x89\x87\xef\x3c\x0a\x89\x57\x9d\x7a\x82\xc7\x95\x9f\xa4\x43\xd5\x4b\x2f\x20\x47\x89\xea\x62\x18\xf4\x1d\x81\x5c\x68\xb4\x56\x7a\xa7\x48\x89\x29\xc7\xa0\xf3\x34\x2a\xff\x1a\xfb\xd6\xa5\x31\x0e\x27\xf6\x98\x16\x7f\xf2\x08\xa2\xc8\xdd\x5a\xe2\xad\x51\xb0\x5f\x88\xbc\xab\x60\x1a\x03\xe3\xa1\x50\x4b\x20\xac\xa8\x17\xce\xfc\x8e\xbf\x13\x6f\x31\x92\xf4\xdc\x77\xe0\xed\x47\xbc\xd4\xdb\x14\xc6\x22\x80\xbb\xb7\xfc\xc3\xab\x3c\x21\x4a\xd3\x9d\xfd\xb2\x3f\xfa\x26\xac\xd1\x9a\xce\x43\xca\x7d\xb7\xc2\xf8\x2e\xb0\x8f\x46\xba\xaa\x26\xd5\x24\x0b\xf6\x12\x54\x81\xe9\xfc\xf2\x06\x24\x85\xd4\xc8\x28\x02\x18\xc0\xe2\xb8\x13\x3d\x05\xec\xd9\x5c\x58\x26\x8d\xbe\xe3\x2e\x68\x45\xc0\xd6\x2d\xb0\x5b\xbc\x4b\x2b\xe4\x05\x15\xb3\x33\x78\x15\xaf\xe5\x60\x0f\x26\xe6\x27\xfe\xe0\x31\x32\xbb\x02\x01\x7f\x51\xaf\x49\x7b\x4c\xaf\x19\x66\x69\xa0\xf2\xa8\xfd\x26\xbb\x5c\x54\xd8\x0a\x98\x56\x00\x18\xec\x01\xbe\xbd\x8b\xce\xc9\xb0\xfd\x2d\xf4\xc4\x5c\x8f\xc0\x26\x07\x33\xb4\x3b\x37\x5b\x91\x7f\xef\x26\x21\xfc\x45\xac\x61\xac\xac\x2e\x7a\x59\x38\xb7\xd7\x84\xd8\xba\x6a\xf7\x8d\x35\x5d\x71\xc8\x4a\xf9\xb5\xab\x2f\xaa\x01\xd9\x19\xba\x4f\xa6\x1c\xc9\xec\x98\x19\x36\xb0\xa8\x4e\xac\x29\x3a\xc0\x4e\x7e\x7b\x87\x2f\xa6\xf0\x13\xe8\xe9\x21\x2b\xcb\xfa\x2a\xd7\x90\xaa\xc8\x59\x5c\x4e\xcf\xf5\xef\xd8\xd7\xd6\xfd\xe8\x7c\x08\x07\x73\xc2\x5d\x0e\xff\x4b\x81\xf6\xc3\x72\x76\x2c\x27\xe6\x00\x72\x2b\x19\x39\x21\x48\x53\x72\xe7\x56\x06\x62\x61\xdc\x5e\x95\x4c\xca\xc2\xde\x73\x95\x9f\x0d\xc5\xcd\x70\xdb\x03\x75\x5f\x59\x0f\x39\x82\xe9\x1d\x0f\x8b\x0a\x9c\x9d\x22\x63\xa4\xfa\x2a\xb9\xa1\xb8\xe8\xcb\x45\xb4\x4d\x42\x0c\x10\x37\x04\xde\x27\x05\xb1\x47\xba\x0d\x32\x62\x9f\x9b\xf4\x1a\x48\xec\x59\x3f\x88\xc0\x1c\x0a\x77\x2c\x6c\xc8\x41\x85\xc0\x16\xf7\x00\x07\x9c\xac\x6b\x49\xb8\x67\x03\xac\xf0\x7f\x10\x40\x25\xfb\xbb\xbd\xba\x70\x4f\x26\xbd\x1b\x58\x6a\x5a\x77\xe8\xc0\x65\x32\xa6\x1c\x36\x8a\xad\x9c\xbe\x23\x39\x9f\x96\x79\xe3\x1e\x14\xcb\xe3\xb5\x2c\xb9\xd2\xf5\x43\xc5\x73\x32\xa9\xe0\xbb\xfa\xe5\xa5\x34\xc6\x0c\x2a\x00\xa2\xdf\x83\x62\xc3\xe1\x9b\x62\x0f\x44\xd9\xcc\x42\xa7\x61\xe8\x1e\x84\x3e\xe3\x73\xe8\x95\xc5\xd7\xb2\xb0\xce\x4e\x2e\x6f\x08\x98\xa9\xb1\x43\x95\x8d\x4e\x4f\x13\x7e\x77\x01\x43\x1d\x54\xd8\xc1\x14\xf7\x1d\x38\x3e\x82\x19\xe8\xfc\xb8\xb5\xb3\xae\xfd\xfc\x7d\x76\x62\x4d\x9d\xa8\x51\x3c\xb1\x19\x0e\x8f\xf8\xcb\x1e\x11\x0b\x5b\x05\x45\x6d\x78\xab\x72\x7a\xab\x5b\x41\x50\x9b\xdc\xe2\xb5\x3c\x68\x9e\x85\xd6\xed\xb3\xb6\x68\x55\x70\x2f\xea\xf3\x68\x77\x4b\xc6\xf4\x0a\x5a\x42\xa0\x7a\x5f\x94\xec\x17\xf9\xa9\xff\x52\x65\x4d\x53\xbf\x0e\xb6\x2f\x00\xde\x8f\x08\xc3\x50\x9a\xee\x95\x17\xaf\x3b\x35\x8c\x4d\xff\xed\x9a\x35\x1d\x6b\x5a\x87\xc2\xe3\x3a\x48\xe0\xb5\x9e\x76\xa7\xa2\xc9\x5d\xe4\xcd\x66\xb6\xd9\x6c\x36\x21\x0a\xa7\xac\x3c\x3a\xb8\xeb\xa0\xe4\x75\xc5\x04\x63\x07\x77\xb9\x9c\x2d\x97\xcb\x65\x0c\x01\x59\x71\x87\xc4\x22\x58\xef\x1e\xfb\x58\x1c\xbb\x93\x8b\x1b\x6e\xf4\xd7\x5a\xe0\xba\x6d\xb6\x8a\xec\x31\x02\x7d\x13\x44\x3f\xd6\xd7\x86\xc2\x7e\x0a\x37\xfa\xf1\xd8\xb2\xce\xd6\x1a\xd3\x28\x85\x35\x46\xd1\x18\x14\xc7\xc4\x8f\x54\x1a\x49\x84\xeb\x8e\x89\x1e\xa1\x37\x02\x73\x50\x1f\x13\x3d\x56\x75\x06\x1a\x4a\x83\x4c\x2a\x11\xda\x33\x10\x10\x4a\x04\xd0\xa3\xbb\x61\xd0\x23\x13\x3f\xac\x43\xa0\x1b\x11\x0a\x61\x35\x92\x14\x4c\x6d\x32\x09\x84\x35\x69\xee\x6a\x1f\x6f\x7a\xf1\x7f\x91\xec\xe7\x90\xe9\x08\x02\x0b\xd7\x58\x0a\xc5\xe3\xff\xf7\x18\xc9\x7f\x01\xf8\x8f\xa2\xb0\xbc\xc7\xe6\x08\xae\xcb\x91\xca\xb6\xa2\x2c\xe4\xa8\xb6\x5e\x61\x03\x25\x8e\xc2\xda\x35\x73\xf3\xf1\x8d\xbd\x86\x4a\x3e\x86\xc2\xe6\x9e\xf9\x45\x70\xdd\x8c\x34\x2f\x8f\x2e\xab\x3b\x14\xfb\x11\x72\x1d\x43\xe1\x89\x9a\x87\x47\x35\xf6\x13\x66\x94\xe3\x28\x3c\xdf\xe1\x45\x48\xae\xcf\x23\xa7\x92\x79\xea\x5a\x91\x3b\x54\x7b\x9e\x42\x3b\x32\x86\xc4\xdc\x35\x64\xcf\x77\x28\xf7\x1c\x9a\xb2\x51\x24\xe6\x88\x31\x0b\x7b\x7e\x8a\xb1\x65\xc3\xa8\xf7\xe9\x9d\x03\x20\xdb\x55\x95\x2c\x5c\x8f\x55\xb9\xa7\x0e\x00\x22\xab\xeb\x92\x52\x58\x86\x72\x40\x37\x94\x42\xb0\x1d\x0b\xe5\x7a\x52\xf0\x6b\x28\x95\xf6\x17\x28\x78\xdb\x75\xb0\x5c\x4c\x0a\x6d\xb1\x76\x30\xf8\x7c\x4a\xc2\xa7\x4e\xbd\xc5\xfc\x4b\x21\xac\xb0\xd6\xf5\xa3\x6c\x20\x8a\x31\xc9\x53\x18\x4f\x56\x63\x61\x6e\xa2\xc2\x25\x86\x38\xea\x1a\x62\x38\x58\x47\x1a\xee\x20\x86\x62\xf7\xa5\xe5\x02\x62\x28\x68\x77\x3a\x6e\x1f\x86\x69\xf7\xa8\xe5\xea\xa1\x28\x78\xf3\x39\x7d\x4b\x78\x79\x84\x4b\x87\x36\x1e\x8a\x85\xf4\x30\xe1\xcd\x71\x7b\x43\x6a\x01\x66\x37\x4d\x5b\x83\x12\xa7\x90\x16\xa4\xc1\x40\x67\x23\xd3\x2d\xc3\xf8\xd0\x58\xcb\xd8\xb1\x29\xdd\xaf\x88\x4e\x5f\x05\xac\x04\xdd\x46\x2b\x8f\x32\x22\x58\x6b\x72\xd8\xa3\x33\x88\xe9\x4e\xa1\x4a\x45\x62\x6d\x62\xed\xa4\x74\x9b\x22\x86\xe1\x23\x49\x32\xa4\x48\x8f\x28\x75\x12\xeb\x29\x30\x27\xd0\x8d\xf4\xe4\x31\x40\x08\xd6\x73\xe4\x6c\xa5\xdc\x9d\x08\x93\x38\x4f\xc9\xd1\x16\x52\xa5\x01\x35\xec\xdd\x08\x57\x86\x62\x85\xbb\x23\xc0\x7d\xc1\x58\xd1\x68\x73\x7a\x70\xa7\xa8\x3e\xcd\xf1\x31\xdd\x03\x8f\x89\x0d\xb1\x9d\x96\x89\xeb\xc6\x74\xd9\xbe\x64\x1d\xed\xc6\x4c\x6c\xb7\xc6\x46\x88\x72\x6b\x26\xb4\xc3\x43\xd0\x23\x1d\x9e\x09\xee\x06\x11\x64\x28\x37\x68\x62\xbb\x45\x04\x3e\xe5\x16\x4d\x50\x5f\x89\x20\x12\xf0\x95\x6c\x5a\x6a\xb2\x25\xa8\x51\x2e\x94\x4d\x46\x4c\xbf\x14\x11\xca\xaf\xb2\x9b\x57\x4e\x93\x04\x19\x8f\xb7\xe5\x76\xb9\x9f\x14\xed\x85\x4d\x08\xe7\x8c\x20\x14\xe3\x9c\x4d\x82\xde\x9b\x24\x3e\xc6\x7b\xc3\x88\x3a\x0a\x3a\xc2\xb5\x43\xe8\x99\xaa\x3a\xc2\xe3\x43\x28\x39\x4a\x3b\xde\x1b\x24\xa8\x5a\xea\x3b\xc2\x57\x24\x08\x02\x45\x1e\xe3\x47\x12\x1d\x02\xd5\x67\x9c\x93\x49\x2a\x0e\x4d\x34\xe8\x83\x22\x34\x11\x35\xf7\x79\xa8\x13\xe0\xae\x52\xe3\x22\x34\x7f\x22\x72\xcc\x51\xee\xa4\x0b\x3b\x01\xfe\x2c\x35\x53\x04\xfd\x59\x44\x90\x05\x26\x88\xc7\xc7\x9d\x00\x87\x37\xd2\x92\x4a\x87\x17\x61\xbf\x8c\xd0\xe6\xd5\x04\x78\xc4\xfe\xb9\xc0\xe3\x11\x23\xec\x57\x9e\x41\x8a\x79\xc9\x13\xe0\x32\x53\xb6\x3b\xe8\x32\x23\x92\xac\xd1\x61\x43\xbb\xd1\x13\xe0\x53\x47\x4e\xb2\xd2\xa7\x46\xd8\x6f\x22\x8c\xdf\xe3\x04\x38\xdd\x14\xcf\xa0\xd3\x8d\xb0\x7f\x44\xd9\xd3\x8e\xf8\x04\x78\xe5\x7e\x17\xc5\xe3\x95\x23\x92\x3c\x79\xe6\x13\xcc\x53\x9f\x00\xb7\x3d\xce\xe7\x52\x6e\x3b\xc2\xfe\x39\x62\x7e\x9c\xa7\x13\xe8\xd8\x53\x76\x29\xec\xd8\x63\x96\x29\x45\x4d\x93\xc7\xdb\x9f\x40\xdf\x9f\x90\x26\xc2\xf7\xc7\xa4\x41\x0d\xa5\x6f\x41\x30\x81\xcb\x83\x48\xaf\x5a\x2f\x0f\x30\x19\x70\x1b\x69\x6e\x8d\xf2\xd8\xaf\x1e\x45\x5e\x6b\x7c\xb8\x81\x44\x12\x91\xc9\x88\xdc\x35\x04\x4f\xe1\x42\xef\x84\x5a\xe5\x71\x1b\xa1\x38\x12\xbd\x0f\x8a\xc3\x93\xdb\xa0\x38\x38\xb9\x0b\x8a\x83\x87\x36\x41\x71\x2c\x72\x0f\x94\x00\x27\xb7\x40\x71\x78\xdf\x0e\x28\xd1\x48\xf4\x06\x28\x8e\x10\xb5\xff\x29\x50\x47\x6d\x7f\xba\x28\xa1\xdd\x4f\x17\x23\xb4\xf9\xe9\x62\x44\xee\x7d\xba\x88\xa1\xad\x4f\x04\x23\xb4\xf3\xe9\xa2\x44\x6c\x7c\x22\xcd\x16\xdc\xf7\x74\x71\x9c\x6d\x4f\xa2\xef\x83\xbb\x9e\x08\x69\x7a\xd3\x93\xb0\x0d\xe1\x3d\x4f\x97\x8b\x6f\xcb\x33\x6e\x24\x6a\x67\x2f\xd4\xd5\x2b\xbf\x41\xf0\xed\x77\x92\xfa\x87\x6e\x77\x12\x43\x3c\xbc\xdb\x89\x28\x92\x67\xb3\x33\xce\x1a\x6a\x1f\x2c\x34\xe8\x1e\x29\x82\xe1\x9d\x4e\x84\xb6\x67\xa3\xd3\x6b\xf4\x7d\xfb\x9c\xa4\xa5\x41\xb7\x39\xa3\xe6\xa2\xc1\x35\x0a\x19\xbe\xde\x77\xc1\xc7\x56\xc4\x1e\x27\x32\xba\x7c\x5b\x9c\x38\xa3\x98\x1d\x4e\x97\x91\x77\x83\x33\x6e\x92\x37\x7c\x15\x77\xfc\x86\xb7\x37\x75\xc6\x37\xc7\x07\x51\x89\x1a\x68\x2f\xc4\x81\x88\xf3\x43\x28\x34\xda\x13\xa1\x30\x48\x5f\x84\x42\x20\xbd\x11\x0a\x21\xe4\x8f\x50\x78\xa4\x47\x42\x22\x90\x3e\x09\x85\xe1\xf3\x4a\xc8\x06\xa3\xfd\x12\x0a\x25\xca\x33\x51\xc8\xa3\x7c\x13\x0c\x29\xe4\x9d\x60\x38\x21\xff\x04\xc3\x89\xf4\x50\x30\xd4\x90\x8f\x82\xe2\x84\xbc\x14\x0c\x29\xc2\x4f\x41\x9b\x30\xe8\xa9\x60\x58\x8e\xaf\x42\xea\x43\xd0\x5b\x41\xc9\xd3\xfe\x0a\x69\x45\xc2\x1e\x0b\xc6\xc9\xe7\xb3\xc4\x8e\x56\xe5\xb5\x44\x74\xff\x2a\x64\x3a\x7c\x9e\x8b\x47\x33\x51\xdf\x85\x34\x05\x61\xef\x05\x55\x30\x8f\xff\x12\x6b\x41\x95\x07\x13\x31\x30\x1f\x69\xa2\x61\x2f\x06\xa5\xef\xf1\x63\x02\x53\x86\xcf\x93\xf1\xd8\x25\xd4\x97\x89\x9c\xcf\xb4\x37\x13\x61\x2c\xe7\x29\x3d\xfe\x22\x3c\x1a\x74\x04\xfa\x7c\x1a\x8a\x59\x8c\x57\x83\x31\xf3\xfa\x35\xb1\x6e\xc3\xe0\xd9\xa0\xe3\xdc\x8e\x50\x53\x40\xe1\x0d\x98\xc1\xf9\x59\xcc\x37\xb8\xf3\xf3\x5a\xe4\x4c\xe0\x78\xfc\x1f\x0c\x28\xce\x05\xf2\x60\xd2\x5e\x90\x07\x89\x74\x84\x3c\x38\xa4\x2f\xe4\xc1\x09\xb9\x43\x1e\x54\xd2\x23\xf2\xe1\x90\x4e\x91\x07\xc9\xe7\x17\xf9\x9a\x90\x76\x8d\x3c\x58\x51\xde\x91\x81\x3f\xca\x41\x22\xf0\x42\x3e\x12\x81\x16\x72\x93\x08\xb4\x48\x4f\x89\xc0\x0e\x39\x4b\x14\x5a\xc8\x5f\x22\xf0\x22\x5c\x26\xaa\x51\x83\x5e\x13\x81\xe8\x38\x4e\x3e\x6d\x09\xfa\x4e\x14\x13\xda\x7d\xf2\x19\xa1\xb0\x07\x45\xf0\xf3\x39\x51\x23\xc6\xb8\xf2\xa3\xe2\x94\x63\x15\x61\x79\x7c\xde\x94\x5f\x81\x51\x87\xca\x67\x46\xc2\x3e\x15\xa5\x84\x1e\xb7\x6a\x84\x3d\x56\x9e\x55\xdc\x70\x7e\xf4\x92\x0e\xfb\x57\x14\x17\x8f\x8b\x15\x9e\x8f\x7c\x5e\x96\xdf\xb8\xa1\x8e\x56\xfc\xac\xa9\x7d\xad\x38\xd3\x3b\x4f\xbd\xa3\x36\xc2\xe3\xa2\xc6\xad\xcf\xe9\xf2\xb0\x8c\xf1\xbb\x08\x96\x5e\xd7\x6b\x84\xc7\x32\x78\x5f\x94\x8d\x88\xd8\x5c\x5a\xa5\x44\xac\x7f\xef\x3f\x9d\x72\x8f\x6f\x65\x03\xc4\xf9\x55\x04\x16\xed\x53\x11\x08\xa4\x3f\x45\xc0\x93\xbe\x14\x01\x1f\xf2\xa3\x08\x34\xd2\x87\xa2\xe0\x49\xff\x89\x40\xf0\xf9\x4e\x54\x53\xd1\x7e\x13\x81\x11\xe5\x33\x49\xdc\x51\xfe\x12\x82\x13\xf2\x95\x10\x94\x90\x9f\x84\xa0\x44\xfa\x48\x08\x66\xc8\x3f\xc2\x50\x42\xbe\x11\x82\x13\xe1\x17\x61\x8d\x17\xf4\x89\x10\x24\xc7\x1f\xa2\xb4\x20\xe8\x0b\x61\xc4\x69\x3f\x88\x32\x18\x61\x1f\x08\xe1\xe3\xf3\x7f\x22\xc7\xa6\xf2\x7d\xc2\x9d\xbe\x0a\x58\x09\x9f\xcf\x43\x2b\x23\xea\xef\x50\xc3\x3e\xec\xeb\x60\x4a\xe5\xf1\x73\x22\xed\xa4\xf2\x71\xc2\xc3\xf0\x91\x24\x19\xf6\x6d\x30\xea\x1e\xbf\xc6\x3f\x27\xf8\x7c\x1a\xda\x00\xa1\xfe\x4c\xdc\x6c\xa5\x7d\x99\xb0\x49\x9c\xa7\xe4\x68\x8b\xf0\x61\xb0\xf1\xe6\xf3\x5f\x08\x56\x31\xbe\x0b\xc2\xca\xeb\xb7\x44\x7a\x03\x83\xcf\x82\x8d\x69\xee\xaf\xa8\x1d\x23\x50\x34\x15\x19\x35\xe0\x03\x13\xd6\x47\xf1\xdc\x05\xcc\xbc\x81\x64\xec\x51\xf9\x99\x6c\xc8\x40\x8e\x28\x91\xcc\x5f\xbd\xff\x26\x90\x1f\xc0\xf6\x96\xca\xfb\x43\x26\xfd\x31\x60\x5f\xb2\x4b\xc9\x5a\x58\xc7\x14\xd6\x2e\x35\xeb\x95\x62\xd8\xea\xae\xa7\xa4\xb2\x4d\x75\xfe\x91\xd4\x4c\xa9\xe3\x22\xc6\xe6\xc3\x42\x30\xc9\xf6\x84\x12\xca\x9b\x1c\xf0\xcd\x1e\xb3\xfc\x5a\x76\x45\x59\x54\xe2\x76\x88\x99\x03\xce\x00\xfa\xa6\x5b\xd4\xcd\x6a\x05\x01\xb3\xa6\xc8\xf6\x25\xbb\x4d\xa7\xe2\xeb\x7f\x9f\x5d\xb6\x29\xd4\x0e\xde\xc4\xbc\x13\xa7\xf3\xe4\x8f\xc9\xb7\xac\xf9\x62\x40\x3f\x3c\xc0\xc6\xf7\x00\xa2\x9c\x13\xd5\x15\x20\xd5\x94\x8d\x6b\x65\xad\xb5\x8b\x51\xca\xfd\xef\x29\xac\x98\xdd\x37\x26\xe8\xdc\x6a\x83\x85\xd3\x93\x26\xf4\xc2\x82\xf6\x02\x2f\xb1\xe6\x25\xa1\x57\x00\x7a\xee\x03\x5d\x43\xd0\x80\xcc\x1b\x0b\xda\x0b\xfc\x68\x01\xfb\x65\x7e\x02\xd0\x0b\x91\x2e\xa8\xd7\x63\x5f\x1a\xbb\x51\x09\x82\x8c\xe7\xd5\xfa\x5f\xa5\x85\x10\x5c\x7a\x09\xb2\xea\xc0\xda\xae\x6e\x3e\x66\xfc\x6c\x6a\x11\x56\xd0\x41\x09\x98\x08\x1b\xcf\x24\x0e\xcd\x8f\x82\x10\xb9\xbe\x6e\x76\x8a\x24\x55\xac\x52\xe5\x09\x83\x90\x17\x0d\x13\x8f\x05\x8b\xfe\x70\xe1\x7e\x81\xac\xe3\x4c\x9a\x21\xd7\x88\x2b\x65\x3d\x23\x1d\x46\x2a\xa9\x43\xcb\xa6\x44\x09\xa6\x3c\x51\x80\xe1\xe4\x24\x0a\x92\xc8\x22\xa2\x8a\xc3\x99\x3f\x14\x64\x38\x45\x87\x82\x24\x72\x69\xa8\xe2\x70\xfe\x0b\x05\x19\x4e\x54\xa1\x20\x89\x8c\x12\xba\x5d\xc3\x59\x20\x34\x68\x38\x5b\x83\x06\x25\xb2\x2a\x88\xd4\x64\x91\x0f\x91\xdb\x9a\xea\x4f\x61\xa9\xb2\x9e\xc9\xd7\x16\x87\x34\x6a\x5b\x9e\xa3\xaf\x2f\xec\x25\xe3\x89\x2c\x89\x0c\x7b\x56\x62\x59\x80\x92\x64\x42\x4f\xf7\xd7\xae\xab\xab\x87\x89\x55\xda\x76\x4d\x5d\xbd\xc8\x2c\xa8\x3a\x31\x28\x84\x99\x75\x45\x57\xda\xaf\xb6\xd8\x30\xed\x75\x6f\x82\x59\x39\xe8\x9f\x1f\x48\x84\x80\x80\x03\x1c\x10\x55\x89\x11\x17\xab\x6d\x91\x0c\xbe\xe8\xfa\xee\x48\x0b\x9e\x25\xc4\xcb\x8c\xe7\xac\xad\xda\x3f\xba\xb5\x27\x5e\x8d\xa4\xa1\xd4\xf3\x06\x56\xe7\x52\x0f\x5b\x7a\xc0\xe8\x14\x85\x8b\xfe\xc7\xaf\x4d\x2a\x21\x2a\x00\x1a\xd2\xf7\x3f\x13\xf0\xb8\xf4\x68\x86\x53\xfd\x60\x1f\x4a\x6a\x36\xa4\xab\x44\xa9\xcd\xcc\xc4\x8f\xe1\x9a\xcc\x9c\x1c\xfd\x21\xa2\xde\x87\xde\xe1\x53\x4d\x5e\x7e\xb0\xd6\x24\x5b\x0c\x38\x4e\xd2\x48\x06\x28\x34\xa9\x22\xb2\xbf\x61\x4a\x47\xf9\xd1\x7c\x0e\x01\x30\x13\xf5\x28\x73\x93\x5e\x71\xce\x5e\xd8\xb6\x77\xf7\xb3\x66\xfa\xd2\x64\x79\xc1\xaa\xee\xcb\x7c\x35\xcf\xd9\xcb\xe4\x0f\xec\x89\x2d\xd9\x2a\x49\x27\x3d\xb5\xe4\x71\xfe\xb3\xf8\xa5\x37\xc5\x0f\x71\x89\x6a\x50\x01\xc8\x91\xff\x01\x69\x34\xa7\x7d\x99\x89\x24\xd3\x1f\xe0\x94\xa6\x69\xcf\x46\x34\xa8\xe0\x34\x7f\x9a\x6f\xe6\x1b\xc9\xcc\xe2\x46\x77\x10\xd6\x17\x1c\x85\xb4\xb6\xa2\xd4\x3f\x1d\x08\x18\x38\x1d\x20\x2c\xd0\xb9\x60\xb1\x5e\x4f\xd4\xff\xc0\x74\x60\xe1\x04\x04\xa4\xa6\x83\x5e\x8c\x71\x73\x81\xa4\xe7\x9f\x0b\xa4\xe9\x70\xa4\x45\xa7\x03\x58\x66\x4f\x07\xa0\x01\x1e\xdd\x06\x08\xcc\x08\x2e\x94\x6d\x06\x64\xff\x86\x66\x04\x04\x8c\x1e\xee\x69\xea\x51\x25\x6b\x2e\xe8\x3d\x11\x6c\x22\x00\xc0\xb8\xd0\xb1\x13\x81\x01\x8d\x4e\x04\x56\xb9\x3d\x11\x50\x75\xf0\xcc\x02\x04\xc5\x3b\x66\x01\x94\x1f\x65\xa4\x23\x80\xe3\x24\x8d\x64\x30\x6e\x16\x70\xb3\x3a\x7b\xbc\x50\x60\x17\x3f\xcf\x14\x6a\xfa\x25\x4f\xf4\x1d\x7a\x2e\x74\xb1\x5c\x59\x28\xa4\xa1\x11\xa5\x7e\x4b\x28\x60\xa0\x25\x44\x58\xa0\x96\x70\xb9\x9a\xac\xe7\x93\xcd\x13\x34\x83\x16\x42\x40\x3a\xca\x0c\xf6\x32\x8c\x33\x83\x92\x5e\xc0\x25\x56\xaf\x19\xe2\x58\xd0\x0c\xc2\x32\xdb\x0c\x0e\xb5\x7f\x74\x6b\x1f\xb0\x81\x2e\x94\x3d\x08\x64\xcf\x86\x6c\x20\x02\x46\x2a\x3b\x7b\xea\x7f\x3c\x7a\x64\x99\xc1\xc5\x72\x85\x9a\x41\x00\x8c\xcb\x1d\x6b\x06\x0d\x68\xd4\x0c\x5a\xe5\xb6\x19\xa4\xea\xe0\x31\x83\x04\xc5\x3b\xcc\x20\xca\x8f\xb2\x52\x11\xc0\x71\x92\x46\x32\x18\x67\x06\xfb\x9e\x86\x66\xb0\xff\x62\xbd\xd6\x05\x38\x8d\x37\x83\xf9\x31\x7f\xca\x9f\xb9\xef\xc9\x09\x7e\xc8\x19\x06\x32\xdc\xe9\xa2\x86\x04\xd2\xcc\xf2\xac\xf9\xb0\x3b\xcc\xe6\xf9\x62\xdd\xf3\x5a\x2c\x57\x82\xd1\xe2\x71\xf9\xb4\x7e\x72\xdc\xe1\x9e\x19\xd1\x43\x44\x7f\xf4\x18\xa4\x91\xe5\x85\xfe\x19\x80\x83\x58\xae\x30\xc6\x02\x77\x86\x57\xeb\x89\xfa\x1f\x98\x05\x20\x8a\x5f\x3e\xd2\x15\x16\x62\x8c\x9b\x06\x04\x45\xff\x2c\xd0\xdb\x0d\x5b\x54\x74\x06\x00\x45\x8e\x1f\x6c\xd6\xfd\xd1\xa9\x7b\x60\x0a\x70\x80\xec\xf1\x2f\xfa\x35\x34\x01\xb8\x50\xe4\x28\x9f\x67\x8b\xcd\x72\xe9\x55\x23\xdb\x11\x16\x9e\x07\x36\x09\x98\xe0\xa8\xe4\xb1\x53\xc0\x00\x8c\xce\x00\xb0\xd8\xf1\x83\xc9\x4a\x78\xa6\x00\x9c\xe4\x1d\x33\x00\xc6\x8d\xb2\xcf\x61\xd8\x28\x31\xe3\xc8\x8f\x74\x82\xb1\x07\x3d\x3c\x4e\xa7\x69\x0f\x3f\xcf\x04\x6a\xf2\x97\xa6\x38\x67\xcd\x77\x6c\xd8\xae\xf7\xd9\xd3\x1c\x5d\xc7\x49\x24\xd2\xce\xa8\x72\xbf\x29\x54\x50\x9e\x8d\x01\x0d\x32\x6a\x6b\xc0\xc1\x0a\x0a\xfa\x79\xdb\x03\x9a\x62\xc0\x26\xf2\xc6\x7d\x47\x64\x46\x2d\xa3\x5d\x1a\xbd\x49\x80\x21\x62\x86\x0d\x83\xb3\x87\x88\xee\xf5\x90\x95\x44\x01\x69\x77\x68\x9e\xad\x1f\x17\x5e\x3d\x8b\xdc\x31\xb0\xc0\x29\xf9\x63\x6d\x25\x80\x47\xcd\xa5\x03\xe1\xdd\x39\xa0\xe8\x79\xe5\xfc\xa0\xd1\x24\x78\x52\x86\x2d\x0a\x3c\x56\xde\x68\x26\x9f\xb8\x8b\x20\xc7\x95\xcd\x6b\xbc\x01\x9d\xaf\x9e\x9f\x56\x47\x6e\x40\x39\x49\x69\x43\x97\xf9\x3a\xbb\xcb\x87\xb6\x04\xb9\xd3\xb3\x8d\x90\xca\xf0\xda\xab\x8f\xef\x2b\x3f\xce\xd9\xbc\x67\x27\x9e\x5f\x92\xec\x8e\xeb\xb9\xf6\xdb\x07\x7e\x45\x75\xac\x15\xbf\x09\x2a\xc5\xa7\x32\x06\x1c\xe8\x57\xa4\xb0\x81\xd8\x63\x78\x36\x4a\xaa\x90\x0f\xcf\x41\x3c\xb3\x96\x28\x1f\x35\x65\x41\x14\xbf\x70\x9f\x37\x59\x09\x72\xfe\x99\x4a\x3e\x0b\x68\x8b\x4a\x6c\xe1\x54\x77\x6c\x64\x3b\x58\xd8\x9c\xe2\x00\xb9\x0b\xf8\x2a\xc2\x81\x77\xa1\x3c\x9b\xd8\xeb\xd5\x71\x4f\x2b\x50\xe4\xa4\x64\xc2\xa2\x32\xc7\xef\xde\x54\x3e\xd7\x1d\x16\x7b\x27\x22\x94\x12\x2d\xdb\x07\xa7\x20\x8c\x1b\xbd\xaf\x12\x82\x8d\x12\x33\x8e\xfc\x27\x4e\x3b\xea\xed\x4c\xd3\x16\x8e\xb3\x49\x3d\x06\x39\xec\x79\xa1\xdf\x26\x71\x10\x8f\x4d\x12\xe5\xa3\x6c\x12\x44\xf1\x0b\xf7\x79\x36\x49\x90\x1b\x69\x93\x00\x12\xb4\x49\xa0\x28\xda\x26\x39\x58\x98\x31\x71\x80\x6c\xe5\x14\x9d\x1a\xb2\x49\x2e\xd4\x3d\x36\x49\x2a\x40\x94\x4d\x32\x61\x51\x99\x63\x6d\xd2\x00\x8c\xda\x24\x58\xec\xb5\x49\x28\x25\x5a\xb6\x0f\xda\x24\x8c\x1b\x65\x34\xc2\xb0\x51\x62\xc6\x91\xff\x7c\x9b\x34\xca\x4b\x35\x7d\xb8\x1f\xe7\x33\x6a\x76\xed\xf5\x70\x60\x6d\xfb\x41\x8e\x8b\xf5\x73\x3a\xdf\x73\xa7\x98\xed\xd3\xe5\xb3\xe4\x98\x1f\xb2\xf5\xda\xf1\x52\x25\x4b\x6c\x1d\xca\x91\xd1\xb1\x25\x91\x48\x13\xa8\xca\xfd\x26\x5a\x41\x79\xac\xb4\x06\x19\x65\xa8\x1d\xac\xa0\xa0\x9f\x67\xae\x35\xc5\xc0\x7e\x07\x6f\x5c\xb7\x1f\x08\xa3\x6d\x97\x46\xdb\x6d\x0c\x11\xb3\xb9\x18\x9c\x3d\x8c\x75\xaf\x87\x0c\x38\x0a\x48\xef\x77\x3c\x3f\x1f\x96\xf8\x7e\xc7\xa0\x21\x51\x66\xdc\x02\xa7\xe4\x8f\x35\xe6\x00\x1e\xb5\xe7\x0e\x84\xd7\xa4\x53\xf4\xbc\x72\x7e\xd0\xb0\x13\x3c\x29\xe3\x1b\x05\x1e\x2b\x6f\x34\x93\xcf\xdc\xef\x10\xe3\x8a\xb2\xa8\x9f\x6a\x44\x35\x93\xd7\xac\xa9\x8a\xea\x05\x93\x35\x7b\x62\x8b\x25\x1e\xd2\x27\x90\xe8\xb0\x5d\x59\x1e\x88\x2c\x96\x50\x1e\x1b\xaa\x41\x46\xd9\x50\x07\x2b\x28\xe8\xe7\xd9\x50\x4d\x31\x10\x4d\xc1\x1b\xf7\x1d\x91\x19\x8f\x32\xb6\x4a\xa3\x6d\x28\x86\x88\x99\x3d\x0c\xce\x89\x31\x55\xbd\x1e\x0c\x38\xc6\x00\xe9\x31\xf1\xfc\x34\xa7\x42\x47\xb5\x86\x44\xd9\x50\x0b\x9c\x92\x3f\x3a\xe4\xd8\x84\x47\x6d\xa8\x03\xe1\xb5\xa1\x14\x3d\xaf\x9c\x1f\xb4\xa1\x04\x4f\x32\x30\x38\x06\x3c\x56\xde\x68\x26\x9f\x68\x43\xe5\xb8\xb2\x79\x8d\xb7\xa1\x2c\x5b\xe5\x22\xfc\x4c\x90\x54\x31\x0e\xfb\xc3\xf2\xe9\xae\x20\x64\x28\xc8\xbd\x61\xc8\x61\xa9\x34\xc7\x3c\xab\x5e\x58\xf3\x41\x86\x59\x36\x3f\x2e\xf8\x54\x72\x78\x5a\xa5\xea\xf8\x31\x5f\x6f\xd6\xab\x39\x12\x81\xd1\x73\x44\xba\x4c\xe0\xa2\x43\x5c\xe0\x78\xa2\x1c\x78\x71\x28\x0e\x83\x03\x79\xe6\x11\x05\x31\x6a\x1a\xb1\x91\x42\x42\x7e\xde\x24\xa2\x08\xfa\xe7\x10\xd1\xaa\x4e\xfb\x93\x01\x19\xa0\x30\x7a\x06\x41\xf0\x30\x9b\x8f\x80\xb9\xc7\xf2\xa2\xab\xc3\x81\x19\x2e\x1c\x69\x0d\xf6\xab\x65\xb6\xc0\xb7\xe1\xb4\x5a\x44\x4d\x1e\x10\x9a\x90\x3d\x3e\x34\x63\x00\x47\x67\x0e\x1b\xc0\x3b\x71\x10\xd4\x7c\x32\x7e\x70\xda\xc0\x39\xd2\x21\x14\x61\xe8\x48\x61\x63\x59\x7c\xe2\x94\x21\x87\x11\x61\x37\x3f\xd5\x54\x0e\xae\xfd\x39\x2b\xcb\x84\xff\x39\xdd\xd7\xf9\x77\x7d\x41\x1c\xdc\x4b\xd5\x17\xc3\xbb\x7a\xb8\xd2\xac\x48\xf0\x4c\x09\x4c\xc4\x2e\x6a\x3a\x43\x83\x9d\xb2\xf2\xe8\x14\x23\x37\xe6\x77\xf0\xca\xaa\x97\xfa\x2f\xb3\x43\x5d\x75\x59\x51\x99\x1d\x89\x32\x32\x20\x6f\xe4\xb5\xe7\x77\x84\xc6\xcd\xb8\x0a\xbd\x4e\xbf\x9d\x30\x89\x4c\x98\x79\xaa\x81\xa6\xdf\x8a\x9c\xd5\x37\x95\x78\x60\x27\xb3\x27\x5c\xea\xb6\xe0\x17\x31\xb3\x7d\x5b\x97\xd7\x8e\xed\x54\x22\x05\x9e\x41\x61\xd7\xab\xcc\xb1\xac\x5f\xb7\xa7\x22\xcf\xd5\x55\x4c\x41\x2b\x11\x14\x55\x5a\x93\x1d\xe4\x2b\xfe\x1e\x2e\x88\x22\x9c\x7a\x0e\x3d\x62\xd7\x64\x55\x7b\xac\x9b\xf3\x96\xff\x56\x66\x1d\x5b\xe6\x5f\xa6\xeb\xf4\xe7\x09\xff\x4f\xfa\xf0\x3e\x2b\xaa\xcb\xb5\x9b\x48\x9b\x37\x23\xa2\x48\xbe\x42\xdb\xde\xb1\xb7\x2e\x6b\x58\x76\xd3\xac\x1b\x56\x66\xfd\x60\x30\xab\xc1\xc7\x4b\xcf\x57\xde\xb5\xd6\xd6\x4f\xfa\x49\x53\x31\xa1\xe9\xb4\x13\x86\xb6\x45\xbb\x38\xb2\xf1\x95\x32\x89\xd4\x60\x26\xf1\x44\x4e\x9b\x37\x57\xdf\x6c\x90\xc8\x4b\xe6\x63\xee\x6a\x2b\x25\xea\x31\xae\x67\xcf\xc0\x7b\xb6\x87\xdd\x33\x18\x74\x65\xd6\xbc\x30\xdf\xb8\x7d\x72\x86\xed\x93\x26\xa0\xdb\x19\x5c\x17\xa6\xd2\x82\x8c\x6a\x19\xa1\xd2\xb2\xd3\x24\xee\xb1\xae\x3b\x31\x4c\xa7\x27\x96\xe5\xc6\x38\x4c\xc1\x38\x4c\xdf\x8d\xfa\x50\x83\x75\x48\x22\xb2\x6c\xd8\x39\xf1\xa8\x87\xfb\x42\x41\x2b\x6e\x42\x0f\xed\xaf\x6f\xfb\x3f\x1b\xb4\x4c\x30\xde\xcc\x1a\x8a\x37\x61\xa2\x2b\xd7\xd7\xcb\x17\x8d\x87\x08\x9a\x6c\x38\x07\xa9\x81\xc7\xba\xea\xa6\xaf\x62\x1c\x3f\xa6\xe9\x6e\x5f\xf7\xd5\xcc\xf2\xbe\x65\x92\xc5\xe5\x2d\x49\x93\x34\x11\x93\xe3\x62\x31\x51\xff\x9b\x2d\x1e\xe4\x1c\xb2\x9d\x5f\xde\x92\xb6\x2e\x8b\x3c\x31\x86\xd5\xae\x1f\x8c\xd3\x9c\x1d\xea\x26\xe3\x43\x51\x8c\x01\xc1\x93\x1b\xb9\xde\xd2\xb0\x7c\xa2\xfa\x52\x4c\x56\x21\x2c\xe5\x1c\x0d\x5f\x8e\xf5\xe1\xda\x1a\x74\x20\xc4\x96\x17\xdf\xea\x6b\xd7\xcf\x53\xdb\x31\xb5\x0b\x89\x52\x54\xdf\x58\xd3\xb1\xbc\xff\x5d\xd2\xcf\x6f\x06\x79\x7e\x61\xde\xbe\xbb\x6e\xa2\xf3\xcc\x2e\x2a\x53\xc3\x94\xcf\x45\xdb\x73\x91\xe7\x25\x60\x73\xa8\xcf\x97\xec\x60\xa4\x84\x58\xac\xd9\x39\x99\x3d\xae\x75\x5a\x8b\xed\x54\x7c\x4b\x11\xb4\xd9\xe5\x5a\x96\x62\x3c\xc0\xc1\x31\x9d\x0f\x2a\x20\x26\xf7\xbe\x2f\x79\xba\x1d\xd9\xad\xa0\xad\xec\xca\xeb\x4b\xa4\x6e\x87\xe8\x22\xab\x67\x74\xd9\x96\xc0\x91\x7d\x05\x3d\x13\xb6\xe9\x7f\xe2\xbb\xcd\x11\x12\xa5\x87\x56\xc5\xd2\xc8\x41\xae\x78\x3f\xca\x43\x9d\xaa\xb4\xf8\x4e\xde\x3d\x47\x69\x19\xea\x66\x72\xcf\xf7\xfd\x8f\x17\x83\x6b\x9e\x4a\xef\x71\x73\x9c\xc0\x20\x2e\xd5\xa7\x36\x1c\xd5\x96\x26\x9c\xe8\x6f\x3f\x08\xd1\xf4\xa6\xa1\x41\xf5\x65\x44\x95\x3c\x1a\xac\xc5\xa0\x3a\x29\x56\x0e\x8f\x5e\x10\x66\xc4\xa0\x65\x2d\x4c\xd6\x0f\x3b\xf4\xfb\xb3\xab\xfb\x14\xfd\x50\x4f\x52\x38\xbe\x5e\xc5\x70\x3c\x3d\x8c\x82\x8f\xee\x6d\x78\xb7\x5b\xdd\xb3\x1c\x51\x23\x4f\xe7\xa3\x12\x52\x8a\xe0\x2c\x1e\x23\x04\xf5\xd9\x57\x7d\x45\xd4\x15\x50\x17\x21\x3d\xc8\xcb\x10\xfb\x2a\xbe\x63\xf6\x35\x1d\x33\xe3\x3b\x12\xba\xc4\xd0\x4a\x20\x7a\x23\x24\x22\x6f\x98\x3c\xf6\x3f\x76\x1b\x12\xd4\xa9\xea\x92\x96\x95\x22\x14\x6d\x56\x1d\x0c\x9f\x59\x75\xb5\x12\x45\xa7\x7a\x33\x62\x0c\x3a\x70\xee\xb8\x73\x41\xc6\x8f\xb5\xe1\xe6\x7b\x64\x95\x3c\xba\xfb\x01\xcb\x6a\xca\x41\x74\x64\xa4\x4d\x05\x9b\x7c\xd0\xac\x3a\xbb\xa0\x91\x5c\x42\x3d\x39\xc2\xb2\x7a\x71\x3c\x3d\xfc\x39\x96\xf5\x68\x05\xf3\x8d\xa8\x8b\xa7\xdb\xc7\xdb\x54\xd0\x11\x8e\x59\x85\x52\xfa\x0c\xaa\xbe\xe8\xe9\x4a\xa7\x8b\x90\x8e\xe3\x65\x88\x41\x15\xdf\x95\x41\x1d\xb7\x60\xa2\xed\x8a\xbc\xb8\x1f\x03\x45\x28\x8d\x90\x2b\xde\x61\xf5\x50\xa7\x2a\x4d\x9a\x55\x71\x2d\x1c\xa5\x15\x6d\x59\x1d\x0c\xaf\xc3\x2a\x2f\xed\x05\xd0\xa9\x6e\x8d\x18\x83\x0e\x9c\x3b\xee\x5c\x90\xd1\x63\x4d\x34\x83\x7d\x9f\x32\x20\xad\x47\x8f\x3f\x60\x5c\xa1\x28\x9e\xfe\x89\x34\xb1\x43\x6e\x03\x68\x5f\x61\xc6\x87\x48\xfa\xa1\xce\x1c\x61\x5c\xbd\x38\x9e\x4e\xfe\x1c\xe3\x6a\x5c\xc2\xe6\x17\x22\x47\xd4\xc5\xd3\xed\xe3\x8d\xeb\xd0\x0b\x8e\x65\x85\x22\xfa\x2c\xab\xba\xc5\xe9\x4a\xa6\x4a\x90\x3e\xeb\x8b\x10\xb3\xca\x3f\x63\x6e\xea\x7c\x3e\xcf\x16\x8b\xfb\x3c\x55\x71\x13\x1e\x21\x87\xd5\x02\xd1\x15\x2e\x14\x19\xf2\xb6\x5f\xa5\x6b\xfb\xce\x2b\x4d\x9e\xa8\x32\x69\x53\xc5\x55\x6b\x8c\x52\xb4\x49\xb5\x11\x7c\x16\xd5\xd2\x46\x0c\x95\xe8\xcc\x88\x31\x67\x83\xb9\xc3\xcc\x81\x18\x3d\xb2\xa4\x9e\xc4\x57\x87\xd6\xda\x0f\x58\x51\x28\x05\xad\x0d\xb1\x7e\xaa\x99\x1f\xc0\xf2\x53\xed\xb4\x09\x71\x4c\x02\x1d\x39\xc2\x90\xfa\x50\xe8\x0e\xfe\x24\x1f\x15\x5c\x2d\x77\xe7\xcd\x50\x75\xe8\xbe\xbf\xc3\x4f\x35\x3b\xc2\xf5\x53\x11\x49\x7d\x36\xd5\xb8\x52\xe9\x0a\x69\x14\x22\x7d\x28\x4b\x11\xe3\xaa\x4a\x50\xfb\x9a\x3f\x1d\x37\xcb\xfb\xec\xab\xbe\x67\x8f\x50\x24\x2a\x85\x28\x92\x92\x8e\x8e\x2d\x3e\x1c\x9f\x53\x7b\xa0\xf9\x98\xd0\x2d\x40\x9a\x5b\x71\x61\x9b\xa0\x17\x6d\x71\x11\x1c\xaf\xd1\x95\x17\x7b\x83\x04\xe8\xde\x8e\x18\xa8\x08\xa4\x3b\x3e\x31\xa0\xf1\x36\x58\xe8\xd2\xd8\xda\x79\x15\xfd\x23\xc6\x18\x88\xe3\xd5\x98\x1f\xba\x6f\x10\xe0\x13\xee\xe0\x11\x56\x39\x80\xe5\xed\xf8\x1f\xbd\x7f\x10\x51\x23\xaf\x2a\xfc\x2d\xf7\x10\x2a\xc2\x89\x53\x25\xe8\xea\xa4\xc2\x3c\x5d\xfe\x19\xdf\x90\x5d\xed\xd9\xfc\x3e\x4b\x2c\xee\x8b\x23\xe4\xb0\x5a\xa0\xab\xa2\xca\xe3\xe9\x1e\x1f\x57\xce\xfe\x01\x4d\x9e\xa8\xb2\x67\x53\x76\xbd\x3a\xee\x31\x4a\x23\x36\x0f\xaa\x68\x4f\x57\x5d\x6b\xf5\x63\x13\xfd\x19\x31\x02\x6d\x30\x6c\x4d\x59\x7d\x78\x47\x96\xab\xca\xa8\x1a\xd1\xba\xfb\xa1\x2d\x59\x53\x10\x5a\x27\x7e\xa8\x7d\xf5\x31\x09\xf4\xe5\xa8\x8d\x03\x1a\x85\xee\xe3\x1f\x6d\x53\x43\x15\xa1\x7b\xfd\x6f\x67\x4d\xd5\x85\x4c\x57\x36\x55\x82\xf4\x58\x5f\x84\x58\x53\xfe\xf9\xb3\xad\xa9\xb8\xe9\x1e\x30\x77\x4a\x56\x44\x55\xb8\x50\x1f\xb4\xa6\xfe\x46\x1a\x63\x4d\x15\xa5\x68\x6b\x6a\x23\x8c\xb3\xa6\x18\x36\xd1\x9f\x11\xa3\xce\x06\x73\x47\x9a\x03\xf1\xe9\xd6\x14\x13\x95\xd6\xdd\x1f\x68\x4d\x15\x8b\x1f\x6a\x4d\x7d\x4c\x02\x7d\x39\xc2\x9a\xfa\x50\xe8\x3e\xfe\xd1\xd6\x34\x54\x11\xba\xd7\xff\x76\xd6\xd4\xb8\x1d\xe9\x8a\x67\x14\x22\xfd\x26\x4b\x11\xb3\xaa\x4a\x30\xcb\xba\x58\x3e\x3d\x2d\x0e\xf7\x59\x56\x7d\x53\x1d\xa1\x48\x54\x0a\x51\x1e\x25\x1d\x65\x62\x97\xcb\xc3\x6a\x65\xef\x18\x78\x99\xd0\x2d\x40\xef\x18\xf0\x2b\xcf\x04\xbd\x68\x5b\x8b\xe0\xf8\xcc\xad\xba\x1a\x1b\x24\x40\xf7\x76\xc4\xe0\x44\x20\xdd\x31\x89\x01\xdd\x71\x1e\xc2\x75\x69\x6c\xed\xbc\x8a\xfe\x01\x03\x6c\x89\xe3\xd3\x98\x1f\x6a\x83\x03\x7c\xc2\x1d\x3c\xc2\x12\x07\xb0\xbc\x1d\xff\xa3\xed\x71\x44\x8d\xbc\xaa\xf0\xb7\xb3\xca\xc6\x35\x47\x24\xd2\x6c\x28\xc4\x82\xf1\x44\x29\x16\x2c\x2b\x4b\xd0\x70\xd9\xf5\xe3\x2a\x5d\xdf\x19\x2e\xab\xee\xbe\x23\x14\x89\x4a\x61\x01\x81\x52\x3a\x32\x06\x61\xff\xbc\x5f\x1e\xec\x68\x49\x1f\x13\xba\x05\xe8\xd8\x59\x7e\x89\x9a\xa0\x17\x1f\x3d\xeb\xe2\xf8\xac\xb2\xba\x6c\x1b\x24\x40\xf7\x76\xc4\x40\x45\x20\x91\x30\x4b\x04\x68\x7c\x28\xad\xd0\xa5\xb1\xb5\xf3\x2a\xfa\x47\x22\x6a\x81\x38\x5e\x8d\xf9\xa1\x56\x39\xc0\x27\xdc\xc1\x63\xa2\x6b\xfd\x58\xde\x8e\xff\xd1\x56\x39\xa2\x46\x5e\x55\xf8\xdb\x59\xe5\xe1\x4a\x23\x76\x02\xa8\xca\xd0\xf3\xd1\xbe\x10\x8d\x5b\xe0\x05\x98\x45\xce\xd2\xe5\x72\xf1\x7c\x6f\xe4\x82\xb8\x41\x8e\x10\xc4\xeb\x83\x1e\xd0\x72\xd1\x28\x73\x7c\x38\xae\x17\xab\xcd\x2e\x9e\x05\x59\x79\xd2\x18\x8b\x3b\xc9\x38\xb5\x11\x51\x0c\x36\x8a\xcf\x14\xab\x4b\xac\x21\x7c\xb2\x8f\x23\xc6\xa6\x0b\x88\x9d\x77\x3b\x30\xa3\x47\xa0\x54\xa0\x91\x35\xf3\x69\xf6\x07\x8c\x30\x14\xc6\xa7\x27\x3f\xd4\x06\xfb\xd9\x04\x7b\x76\x54\x7c\x83\x0f\xc9\xd7\xe3\x3f\xda\xfe\x86\xab\xe3\xd3\x81\xbf\x8d\xf5\x4d\x66\xc5\x41\x48\xd2\xb1\xb7\x6e\x7b\x2c\x1a\x75\x77\xd3\xb8\xc6\x39\x09\x03\xdb\x17\x3f\x09\x94\x01\x42\x60\x18\x24\x1e\xbc\xaf\xca\xbf\xcf\xf6\x0d\xcb\xf2\x43\x73\x3d\xef\xf5\x7b\xcd\xfa\x6a\xe6\x50\x96\x64\xe8\x8d\xc5\x21\xa3\xc2\x23\x84\xf6\xdc\x72\xdc\x19\x79\x13\x0c\x14\x3a\xb9\x82\x7c\x9e\x5b\x3d\xaa\x3e\x33\x1f\xd7\x17\x17\xdb\x5b\x56\x1e\xd5\xbd\x76\x75\xaf\xd6\xfc\xc6\xc5\x10\xf7\x0e\xad\xf7\xe2\x4d\xa2\xe7\xa2\x2a\xce\xd7\xb3\x79\x61\x56\x5f\xcf\xd6\x37\xae\xa7\xe7\xfa\xf7\x69\x76\xb9\xb0\xac\xc9\xaa\x03\x13\x35\x9a\xbe\xb2\xfd\x6f\x45\xe7\x7c\x47\xae\xdd\x3b\x57\x49\xff\xb0\xdf\x1f\x56\xf9\x5c\x69\x59\x93\xe5\xc5\xb5\xdd\x2e\x2e\x6f\xfa\x86\xbe\xb8\x40\x39\x15\x8f\x0c\xd7\x55\x37\x6d\x8b\xdf\x19\x7f\x43\xdd\xb9\x44\x2c\xae\xee\x76\x59\xd3\xed\x38\x8e\xba\xb5\x3e\x5b\xef\xac\xfb\x97\x5d\x7d\xd9\xe1\x71\xd3\x6a\x3b\x16\xbd\xba\xa3\x6f\xd9\xce\x56\xfa\x72\xa6\x64\x92\x5d\xbb\x5a\xb6\xd7\x5f\xf2\xa2\xcd\xf6\x25\xcb\x7f\x1d\x5a\x6e\xf8\x76\x3b\x5c\x9b\x56\xbc\x29\x3e\xcd\xca\xb2\x7e\x65\x39\x22\x0a\x6c\x16\x65\x87\x0f\xfb\xc7\xc3\xa3\xe4\x62\x8e\x7c\xfd\x41\x9b\x43\xfd\x45\xdb\x3a\xfe\x65\x0b\x30\x94\x59\x13\x7f\xc8\x54\x15\x4a\x62\x93\xbe\xf9\x4d\xb3\x30\x3f\x6a\x2e\xea\xe3\xd6\x46\x55\xbc\xf4\xdf\xd2\x44\xd2\x15\xdc\x6e\x2f\x65\x76\x60\xa7\xba\xcc\x4d\xb9\xc0\xe7\x1b\x68\x2e\xa3\x65\xe4\xbd\x58\x28\x65\xfc\x1d\x5b\xf8\x4f\xfa\x3e\x3b\x16\xac\x14\xae\x88\xb8\xcf\x6b\x69\x27\x7f\xf7\xfe\x9d\x5b\x25\x5f\xb6\x09\x53\x97\xf1\x1b\xf0\x8e\xa2\xf6\x63\xb7\xd7\x56\xad\xcb\x0b\x9e\x23\x43\x5e\x36\x97\x7f\x1d\x8b\xb2\x1c\xae\xeb\x28\xdb\xc8\xd3\x6d\x4c\x80\xa9\xbc\x29\x32\x06\x0d\x6e\xeb\x14\x90\xbc\xaa\x3e\x8c\x1c\x93\xd9\x1a\x80\x8a\xeb\xea\x12\x72\x31\xc0\x2d\x00\xd4\x31\xcb\x59\x7e\x13\x02\xee\xd7\xfd\xcf\x50\x26\x2e\xee\x8a\x32\x3e\xeb\xa9\x02\x71\xe9\x0c\xaf\x95\xb8\x3c\x21\x91\x64\x2c\xa0\x2a\xe3\x21\xc0\xa2\x88\xc7\x84\xaa\xef\x2a\x74\x4d\x16\xc9\x50\x25\x55\x5a\x54\xc7\x7a\x62\xd0\xaf\x14\x0d\x75\x38\xa4\x1b\x54\xee\x67\x4b\x32\x72\xff\xf2\x70\xca\x9a\x6e\x96\x17\x6d\xd7\x14\xfb\x6b\x6f\xe8\xa7\xfb\xac\x49\xda\x6f\x2f\xc9\x6c\x9f\x35\x6d\x32\x6b\xcb\xe2\xc0\xa6\xe9\xc0\x43\x6d\xc1\xc8\x5a\xc8\x25\xf7\x50\x0b\xbe\x1c\x10\x85\xca\x11\x2c\xd9\x37\x56\x26\xe2\x1f\x9d\x43\xe8\x72\x2d\x4b\x96\xcb\x7b\xdf\xa8\x35\x64\x55\xee\xc7\xed\xe7\x45\x1c\x95\x1b\xd2\xf7\xd9\x99\x55\xd7\x84\xff\x77\x5a\x16\x6d\x97\x64\x20\x93\xc0\x26\x1d\x72\x24\x88\xa4\x03\x52\x67\xa0\x41\x07\x97\x0f\x8b\xaa\x65\x1d\x5f\x18\xa5\xda\xfe\xe3\xb7\xf0\x1d\xde\xa6\x51\x72\x0a\x1d\xaf\x6b\x9b\x26\x08\xe3\xe9\x52\x2e\xcb\xac\x64\xe6\xaa\xb7\x3d\x4c\x85\xdf\x41\xb2\x16\xc5\x96\xf2\x38\xb0\x12\x0a\x78\x22\xb3\xb5\x1e\xc5\xeb\xc7\xfe\xc7\xc5\x13\xbf\xf6\xbd\xa7\x3c\x15\xb3\xbd\x7d\xf0\x5c\xe3\x8a\x9c\x59\x78\x0e\x56\xb6\x67\xa5\x82\xe9\x4b\x13\x91\x72\x24\x71\xb3\xf2\x88\x2f\xb2\xdd\x1e\xd9\xd3\x31\x7b\xda\x95\xac\xeb\x58\x33\x6d\x7b\xcf\xa5\x7a\xe9\x9d\x07\x9b\xb6\xe9\x97\x99\x59\x57\x52\x98\x3a\x04\x95\x0b\x71\xec\xa4\x86\x71\x1c\xdb\x9f\x50\x04\x0e\x75\x59\x66\x97\x96\xe5\xd3\xba\x2a\xbf\x7f\x35\x2b\x6a\xa0\x73\x65\x93\x59\x3d\x7a\x38\x3c\xf3\x4b\xb2\x7d\xde\xa4\x3c\xb5\xc7\x18\xda\xae\x68\xbd\x6c\x6d\x9b\xbd\x98\x0e\xb8\xb4\x7f\xb2\x20\x51\xbf\xf0\x14\x26\x50\xa5\x11\x27\xc5\xf0\x8a\x66\x73\x31\x1f\xe0\x23\x54\x39\xc1\xea\x4f\xed\x05\x3b\x7c\x79\x56\x14\xd7\x59\x93\xd7\x86\x1c\x67\x8d\xa0\x30\x93\x09\x8c\xa6\xfb\x92\xb1\x5c\x4f\xbb\x14\x43\x9e\xe7\xaa\x64\x56\xde\x9b\xf4\x5d\x66\xff\xb1\x72\xe8\x38\x29\x83\xcc\x56\x2a\xad\x6c\x55\x5d\x9d\xf0\xca\x4e\xfe\x30\xdf\x3c\xa6\xab\x7c\xf2\x87\x79\xfe\xbc\xda\x3c\x3e\xa8\x79\x75\x09\x54\xba\x6f\x63\xd0\x66\x8b\xf4\xf2\x66\x35\x1b\xff\xe4\xa4\x51\xf2\x27\x32\x22\x53\xcf\x3d\x51\x79\x48\xfc\xf4\xa4\xc5\x33\x17\x64\x56\x22\x12\x3f\xfe\x4c\xd9\xd2\x00\x98\x36\x80\x80\x95\xd0\x02\xd1\x4d\x53\x73\xf1\x3a\x22\x9b\xd3\x76\xbb\x67\xc7\xba\x61\x37\xe9\x63\x5c\xde\xb4\xa7\xd3\x4f\x22\x43\x6d\x88\x5d\x04\x31\x5f\xfd\x94\xfc\xa4\x7d\x2c\xee\x8a\x21\x59\xa9\xa4\xee\x8b\x34\x4f\xbd\x5b\xe7\x93\x93\x55\x39\xcc\x57\x64\x3a\x75\x6d\xd7\xb0\xee\x70\xc2\x97\x1f\xac\xca\x77\xe6\x92\x53\xac\x0b\xbc\x9c\x7e\xc9\x22\x75\x64\x14\x9d\x8f\xe8\xc6\xbe\xc9\x08\x72\x34\x8d\x96\x1d\xea\x2a\xc7\x1f\xe2\x13\x83\x4d\x3b\x0a\xd2\x6d\x4d\xfa\x21\x94\xa8\x3f\x52\xd5\xf1\xab\x19\x6a\xc3\x70\x05\xd3\x5c\xe1\x38\x33\x4d\xe2\xb2\x19\xfa\x1a\x42\x91\x3d\xac\x96\xc9\x08\x52\xcf\xf4\xe5\xda\x4f\x75\x52\x65\x17\xeb\xd4\x58\xad\x4a\xed\x53\x96\x8e\xcf\xb2\xa6\x81\x26\x44\x19\xa8\xfe\xf2\x47\x35\x05\x4f\xd7\xbd\x9f\x32\x66\x5e\xf2\x8b\x0b\xb2\x94\xbd\xcf\xaa\xba\x2b\x8e\xc5\x81\x1b\x9b\x9b\xe5\xc2\x0d\x0e\x1c\x36\xb5\x9a\x98\x5c\x7b\x58\x95\xc3\x64\xda\x7a\xfd\xea\x9a\x0b\x6b\xc1\x66\xd3\x6a\xae\x55\x65\xd3\x62\x73\xb6\xb7\xdd\x34\x3b\xf8\x5f\x3a\x5b\x36\x39\xd6\x34\xb5\x35\x7d\xae\xf2\xc7\x7c\x05\xb7\x59\x77\xf8\xae\xb2\x4d\xec\x90\x55\x07\xd6\x3b\xcd\xf6\x7c\xbc\x62\x19\x3c\x3e\xb3\x37\xcd\xa4\x83\x6f\x13\x94\x89\x8b\xf0\xc9\x1d\xcd\xde\xe8\xd2\x90\xf9\x39\x0c\x1a\x8f\x69\xff\xe3\x6c\x64\x60\xb9\x2a\x6c\x62\xd6\x63\xc2\xdb\x3f\x3c\x3e\xef\xe1\xf5\x50\xe7\x16\xa1\xa3\x0c\xee\x64\xfc\x87\x7d\x76\x9c\xe7\x07\x78\x53\xc4\xa6\x25\xd7\x64\x36\x39\xb1\x36\xb3\xbf\x5a\x0f\xa6\x7d\x48\x45\xdc\xe7\x34\xb6\x7f\xd8\x1f\x18\x3b\xcc\x61\xa0\x8a\x2d\xb0\x5c\xfd\x39\x7d\xea\x64\x96\xff\x90\x8a\x38\xc9\x85\x3f\xa4\xc1\x32\xf1\x00\xae\x70\xd2\x8f\xc7\xc7\xe9\x25\x7b\x29\x2a\x61\x2b\x14\x78\xd6\xff\x98\x25\x89\xf1\xfb\xb4\xba\x9e\xf7\xac\x69\x07\xcb\x62\xae\x25\xb8\xe2\xf3\xa5\x02\xdb\x56\xf5\x6b\x93\x5d\x76\xc2\xda\x2c\x48\x7a\x7d\x97\x4f\x48\x66\xec\xad\x23\x0b\x2f\x0d\xfb\x56\xd4\xd7\xf6\x86\x8d\x08\x99\xbe\xcd\x5a\xac\xaa\xad\xe0\x1d\x2a\xbd\xb1\xe3\x47\x78\x6d\x9e\x3a\xa8\x6d\x36\x4f\x4d\x02\x20\xaa\x3e\x7a\x07\x8d\x4a\x45\xa7\x4f\xd4\x65\xc2\x06\x9f\x54\xca\x11\xf4\x89\x15\x80\xd1\x72\x91\x27\x84\xea\xb8\xef\xd2\xd4\x2f\x8d\x0c\xda\xe1\x9b\x54\x6a\x17\x69\xd3\x2f\x25\x64\x46\xc4\x21\x11\xa2\x68\x75\x23\x71\xf4\x22\x4d\x7b\x40\xbe\xb4\xe0\x9f\xa6\x0a\xc7\xcc\x2e\x9d\xfe\xfc\x2e\x17\x14\xa8\x29\x34\xb6\x9a\x43\xbb\xd2\x6a\xa5\xb7\x6d\xd9\x25\x6b\xb2\x8e\xed\x1c\x1e\x7c\xa9\x53\xbc\xb1\xfc\xc6\xff\x9c\x96\xd9\xf7\xfa\xda\x6d\xf9\x27\x1b\x24\xe9\x72\x71\x34\xa0\x57\x0f\xac\x2c\x8b\x4b\x5b\xb4\xee\x7a\x42\x63\x16\x6d\x5d\x66\x1d\xcb\xdd\xd5\x91\x00\x79\x2d\xba\x13\x4f\x7e\x69\x03\x58\x7e\x7a\xef\x94\x9a\xbb\x32\x66\x19\x5f\xd8\xe8\x42\x87\xf2\x57\xf1\x01\xe3\xa2\x36\x21\xb4\xb8\x72\xab\x35\x11\x3e\x5a\xc9\x0e\xbc\x24\xc9\x26\x2e\x48\x97\x63\x1f\x4f\xa6\xe5\x00\xa4\xfb\x49\x8a\x55\x7d\x33\xf2\x45\x63\xd7\x88\xfc\xe4\x9a\x11\xcb\x1f\xd0\xa7\x27\xfa\x9f\x71\x64\xf4\x96\xb8\x8d\xc3\xa1\xba\xa6\xb8\xf8\xd1\xab\xee\x24\x36\x2b\xbe\xb0\x6f\xac\x42\xa5\x92\x1b\x98\x9f\xc4\x81\x3c\xfe\x57\x26\x40\xf4\x82\x6e\x71\xa7\x99\x93\x39\xdf\x89\x32\x6c\xe3\x80\xc3\xf7\x90\x4f\x0d\x63\xd3\x7f\xbb\x66\x4d\xc7\x9a\x76\xa0\xe2\x96\x49\xef\xf8\x71\xfd\xb3\x45\xe1\xb5\x9e\x76\xa7\xa2\xc9\x6d\x6c\xfd\x5d\x62\x6e\x36\xb3\xcd\xc6\x42\x3e\x65\xe5\x11\xa2\xf5\x5f\x24\xc2\x3a\xb5\xa0\xeb\x8a\x09\x92\x10\x45\x7f\x96\x78\xcb\xe5\x6c\xb9\x44\x50\x65\x4d\x5c\x64\x59\xa0\xfd\x7f\xbb\x86\xcd\xb5\x3a\x64\xfc\x8b\x55\xc5\xa1\xe0\x66\x0d\xf4\x1d\x61\x0f\xdc\x89\x12\xf2\xaa\xb2\xa6\xa9\x5f\x21\x1b\xf1\xed\x66\x2e\xb6\xfa\xe5\x55\x22\x7f\x99\x0d\xa3\x09\x10\xf9\x6a\x68\x05\xf8\x7c\xc2\xc8\x9b\xd0\xe0\xb3\x56\x28\xb1\xfc\x75\xb9\x71\xe3\x0d\x71\xf9\x27\xd5\x9c\xfd\xef\x86\xb1\x97\xb6\xde\xa4\x30\x87\xd8\x73\x89\xf9\x34\x5b\xea\xff\xfb\xd9\xa0\x00\xbe\x5b\xb2\x58\x72\xa8\x5d\x88\x5e\xf5\xe4\xff\x3d\x9a\xa4\x60\x01\xa4\xb5\x84\xb4\x96\x83\x7a\x98\xb5\xb1\x95\x65\x05\xb1\x56\xa6\x4e\x62\x95\x81\x05\x90\xd6\x1a\xd2\x5a\x4b\x5a\xab\x39\x51\x1b\x58\x00\x69\x6d\x20\xad\xcd\x30\xc6\x0c\x02\xce\x88\x7b\x84\x58\x8f\x0a\x8b\xea\x9a\xb5\xa7\x6f\x9e\x20\xad\x27\xd3\x2c\x60\xb5\xd9\x78\xfa\xe6\x19\xd2\x7a\x1e\x8c\x93\x41\xc0\x31\x55\xf3\xd4\x52\xb4\x54\x69\x1a\xd5\x3b\x4f\x9e\xde\x99\xdb\x6a\xab\xf4\xf6\x99\xea\x9f\x67\xa2\x7f\xf4\x2c\x9a\x74\xa7\xe1\xed\x04\xb9\xe8\xb1\x1d\xd2\x6b\x95\xb3\xa6\x2c\x2a\x06\x36\x54\x56\x69\x6a\xd2\x33\x16\x6e\x26\x69\x73\x3d\x07\x7d\x28\x34\xb2\xc1\xda\xb1\xd1\x0c\x78\x1e\x6e\xb0\xe8\x50\x89\x31\xa8\x1d\x06\x03\xb1\x9f\xf7\x88\x59\x4d\xbf\x88\x02\xc0\x0d\xbb\xc4\xff\x3e\xe9\x33\x62\x7e\xfa\x68\x37\x83\x7d\xe0\x2a\x1c\x1a\xe8\x18\x61\x22\x72\xa2\xd3\xf6\x35\xeb\x0e\xa7\x7e\x81\x9a\xb3\x69\xdb\x65\xdd\x55\x2e\xb2\x26\xb3\xae\xae\xcb\xae\xb8\x6c\xb7\xd9\x51\xcc\x22\xaf\xf5\xb4\xed\xd8\x45\x66\x37\xa7\x32\x42\xc3\xba\x40\xf7\xc9\xae\x19\x2c\x35\xf7\xd7\x7d\x54\x4c\xf5\xc1\xe8\x24\xd9\x0d\xdf\xcd\x32\x3d\x04\xe3\x01\x00\x54\x17\x90\xd4\xfc\x7e\x99\x80\xaf\x45\x4a\x16\xeb\xe0\x50\x4c\x74\x67\x04\xc0\xc4\xa6\x74\x50\x1a\x94\x1c\x02\x26\xf7\xb8\xdd\x4d\xe9\x4b\x5d\x54\x1d\x6b\xa6\xbd\xf7\xd6\xb5\xa2\xe9\x80\xba\xde\x57\x23\x4a\xd2\x1b\xf2\x24\xc3\x7f\xfe\xb2\xb9\xbc\x3d\x84\xf9\xc4\x36\x89\xac\x2b\xca\x69\xba\x48\x09\x5e\x62\xcd\x38\xcb\x59\x7b\xf0\x56\x0a\x83\xbb\xe9\x63\x80\xff\xf6\x7f\xfd\xd7\x9f\x3c\xd4\xb3\x38\xe2\x19\x41\xfb\x7f\xf3\xd1\x3e\x65\x22\xc2\x42\x2c\xa2\x62\xd8\x10\x18\x9a\x23\xf0\xbe\x43\x0c\x75\x8b\xd0\xdd\x14\x83\x17\xdd\x94\x16\x95\xec\x3e\xe6\x19\xc5\xdb\x6d\x6a\xd7\x6a\x0d\x53\x9f\xda\x8a\x92\xe5\x72\xb9\x24\xb6\x0f\x3b\xd6\xa8\xa3\x2b\x11\x77\x25\x87\x9c\x88\x0b\x28\x7e\xef\x0d\x9b\x36\xf6\x6f\x18\x0d\x67\x3b\x43\x9e\xcd\xcc\x27\xcf\xcf\x2a\x4a\x92\xc6\x4b\xba\x1c\x9c\x7b\xd3\x86\x31\x84\xaa\xf4\xc3\xb5\x22\xba\xe1\x7e\x92\x76\x79\x79\x79\x93\xef\xbc\xc0\x77\x61\xa6\x73\xe7\xa8\xc2\x9c\x97\xd5\x16\x29\x10\x48\x98\x82\xeb\xbe\x6f\x75\x1e\xb3\x62\xbf\x23\x81\xef\x26\xe2\xb4\x90\x33\x65\xb8\xd5\x22\xe4\x4f\xfb\xe5\xca\x70\xe2\xaa\xd6\x30\x73\xb0\x9a\x30\xc4\xeb\x57\x65\x3c\x2c\x8b\x5e\x2f\xcd\x74\x2c\x12\x6e\x5f\xc5\xbb\x21\xee\x06\x47\xdf\x8c\xbc\xd9\x46\x38\x30\xbe\x6d\x95\x61\xbf\x09\xdb\x91\x59\x60\x67\xca\xe2\x6d\xae\x89\xfc\xd7\x0c\x81\x31\x5f\xed\xc2\xa3\x4d\xa1\x1f\x03\x4c\x4a\x5f\x4b\x73\x03\xcf\xac\xbd\xf9\x7d\xf0\x2b\xf4\xbe\xa8\x90\x09\xf3\xe9\x30\x1f\xb0\x4d\xae\x25\x5c\x15\xce\x8d\x78\x92\x46\x9d\xf6\xaa\x8a\x0e\x2b\x57\xed\x6d\xd8\x3b\xd4\xbe\x50\xa2\xf7\x50\x3b\x21\xe8\x32\x24\x88\x08\x08\x92\xaf\x9f\xc1\x61\x0c\x22\x2a\x06\x98\x21\x14\xf9\xe6\x44\x59\xa8\x57\xbc\xda\xeb\xbe\xca\xbe\x0d\xe3\x98\x6f\x0a\x8a\x83\xe9\x79\xaf\x00\x22\xe2\x80\x1f\x2b\xaa\x47\x9b\x7e\x9f\x16\x55\xce\xde\xfa\xd5\xb0\x4d\xe7\xeb\x1f\x4d\x55\x55\x03\xc4\x04\xe0\xfb\x6a\x65\xdd\xb2\xc6\x84\x3c\x64\xe5\xe1\xcb\xb2\x6f\xde\xe4\x6b\x3f\xd8\x1e\xc6\x9c\x34\x5a\x55\x91\xad\xd0\x73\x7e\xe1\xbb\x54\xfd\xd8\xd4\x11\x3a\x4a\xb7\xf9\xca\xde\x76\xbf\x87\xb3\xd1\xd9\x13\xdf\xe7\x05\x91\xbb\x43\xd8\xa3\xac\x98\x41\x7e\x56\xd5\x62\x2e\xd1\xae\xc6\xe4\x50\xe7\xec\x06\xbf\x69\x9d\x37\x31\x8b\xc1\x4b\xb7\xbf\x47\x1d\x66\x22\xf4\xb0\x83\x4b\xa8\x4e\x38\x1e\x76\x5e\x26\x4f\xc8\xbc\x78\x87\xfa\x7c\x29\x99\x75\x7c\x28\xcf\xd9\xbd\x88\xee\x91\x28\xf2\x4e\xa5\xcb\x0e\x3f\xfb\x74\x1f\x4b\x76\x30\x4f\x75\x59\xd6\xaf\x4e\xd0\xa0\x35\xa4\xad\xb0\x02\x87\x8a\x71\xb5\xc4\xb8\x60\x25\xe7\x89\x44\xb2\x2e\x3a\xb1\x89\xba\x9a\x0c\xbf\xaf\x8d\xdf\x37\xf6\x93\x5a\x72\xd3\x9a\x97\xf3\x6d\xee\x7e\x92\x6b\xea\xfa\x0c\x1e\x05\xeb\x81\xb2\x49\x06\x03\x2a\x42\xcb\xed\x77\xae\x8b\x02\xf8\x70\x6d\x1a\x56\x75\xff\xd0\xff\x61\x55\x75\x08\x15\x70\xa2\x04\xf8\xf4\x85\xce\x68\x5e\xc7\xe6\x7d\xc6\xce\xfb\xde\xe4\x67\x6d\x71\x98\xe6\x4d\x7d\xc9\xeb\xd7\x0a\xf3\x3b\x30\x38\x15\xcc\x82\x78\x19\x62\x6a\xe6\xa7\x5e\xca\x1c\xcd\x53\xe0\x00\x80\x83\x6a\x1f\xf5\xa9\x08\x3b\x55\xc6\xd3\x0f\x2a\xa2\x5b\xb5\x15\x45\x81\xfb\x9e\x29\xb3\xef\xb6\x4d\xb5\x7d\xb6\x74\xd2\xff\xcc\xd6\x0f\xe6\xfa\xd5\x7c\xdb\x6e\xa8\x98\xf4\x9f\xf4\x73\x7a\xce\x3a\x2d\x20\xf6\x6b\xdd\x9c\x4f\x75\xc9\xa6\x75\x53\xbc\x14\x95\x15\x30\xae\x90\x2f\xf5\x2b\x6b\xe4\x02\x6a\xda\x35\xc5\x0b\xfe\x92\x6c\xef\x57\xc1\x1b\x0d\x8f\x6b\xed\x27\x4c\xdf\x02\x9b\xc8\xe6\x03\x7e\x22\xd8\xfd\xda\x6a\xae\xf0\x0a\x87\x53\x60\xed\xb4\xd0\x52\xdb\xcb\xa5\x21\x20\x8b\x7b\x15\xbb\x43\xc9\xb2\x66\xbb\xaf\xbb\x93\x8f\xca\x54\x4f\xd9\x1e\x4e\xe0\xfa\xa5\x15\x63\x99\x65\x19\xbd\x77\x63\x14\x4a\xaf\x03\x2d\x13\x2e\x8a\x5d\x64\x5d\x74\x42\x3b\x5f\xd7\x62\xcf\xca\xfa\xd5\x53\x87\xbf\x64\x4d\x91\x4d\xd9\xdb\x25\xab\x72\x96\xff\xb9\x6b\xae\xec\xd7\x49\x80\x66\x51\x4d\xf9\xcd\x87\x91\x64\x6f\xf7\x9f\xff\xf9\xe5\xc9\xf6\xf5\xb7\x7b\x85\xe9\xea\x0b\x2e\x49\x5f\x80\x8b\x01\x58\x20\x57\x40\x9e\x9f\x9f\xad\xa5\x8d\x3b\x40\x90\xb8\x03\x7c\xcc\xa0\x4c\xe5\xfe\x1e\x8f\xde\x76\xcd\x23\x76\x23\x44\x9a\x19\x1d\xda\x96\xda\xab\x32\xe9\x50\x73\xa3\x2a\x5b\xa0\xed\xbe\x97\x6c\xcb\x55\x0f\x2e\x8a\x1e\x2f\x6f\xc9\xaa\xf7\x53\xed\x5b\x41\x59\x66\xbe\xc8\x07\x5e\xe7\x13\x6a\xbe\xbe\xbc\xf9\x3b\x13\xeb\xaa\x24\xd4\x04\x83\x8b\xd5\xd4\x5d\xd6\xb1\x2f\xf3\xa7\x34\x67\x2f\x0f\x68\xdb\xf1\xe1\x3f\xdd\x77\x58\xcb\x59\x0b\x73\x19\x5e\x6b\x08\x8d\x5a\x8a\xf3\xb5\xec\x8a\x4b\xc9\xa6\xfc\xce\x8f\xf0\x2f\x8e\xd9\xb9\x28\xbf\x2b\x73\x65\xcc\xa8\xea\x8b\x19\xf4\x81\x76\x98\x69\x65\x15\x12\x75\xbf\x4d\xfa\x24\x5b\x30\x89\x97\x75\xd6\x6d\x7b\xd5\x76\xe7\x45\xe7\xd9\xc4\x7e\xae\xa9\x3a\x11\x40\x1d\x5d\xd3\xad\xba\x49\x86\xed\x82\x32\xef\xcc\x62\x53\x02\x37\xa9\xf4\x95\xc3\xdd\x30\xa0\x46\x11\x53\xcd\xc4\xff\x9c\x7e\x2e\xe9\x73\xfd\xfb\x67\x53\x6c\x3f\x22\xa8\x26\x57\x5f\x7a\x5d\x6e\xd1\x35\x72\x18\xcf\xdd\x0e\x79\x69\xb2\xef\x56\x84\xca\xea\xf2\xa6\xc4\x59\x2e\x97\x58\x7c\xcf\xaa\xff\x31\x82\x4e\x57\xee\xf5\x49\x57\xbb\xe7\xb3\xd5\xda\x54\x57\x29\xb7\xc8\x59\xd0\xff\x77\x49\xa8\xa5\xae\x43\xc3\xce\xf5\x37\xc6\x07\x35\xee\x82\x86\xd0\xc4\xa5\x0e\xee\x56\x3f\x0c\xef\xf3\xae\x71\xe3\xcb\xb2\xe6\x30\x44\x2b\xac\x08\xe1\x04\x98\xb4\x09\xee\xfe\x8c\xe9\x01\xa8\x99\xc7\x70\x05\x5d\x83\x81\xd9\x83\xa1\xa1\xb9\x8d\xda\x67\xf9\x0b\x9b\xcc\xf8\xf3\xdf\x53\xe3\x39\x57\x11\xd9\x64\xaf\x6f\x83\x52\x03\xf7\x26\xd2\x0d\x01\xc4\xb4\xcb\xef\x75\x67\x68\x2f\xc8\x71\x34\x5d\x75\xb4\x63\xce\xec\x68\x86\xb0\xd7\xa8\x84\x0c\xf8\xfe\xdc\xc7\x88\x76\xf5\xdc\x1d\xaf\x3b\xdc\x9d\x7b\xc4\xe4\xee\x1e\xea\xb3\x46\x12\x50\xbe\x9d\x7d\x2b\x29\xca\x97\xfd\xa8\x33\x35\x56\x46\x33\xf8\x0d\x21\xa7\x4c\x62\x59\xb4\x9d\xf4\x66\x78\x55\xa2\x17\x1d\x3e\xaa\x7f\x69\xea\x92\xfd\xb9\x27\xbd\xaf\xdf\x7e\xd5\x61\x34\xd3\xef\xc2\x87\x52\x24\xf5\xf7\xf6\xd0\xd4\x65\xd9\x8f\xd6\xae\xbe\x1e\x4e\xfc\x74\x5d\xe9\xf6\x42\x5e\x03\x21\xb9\xd9\x47\x06\xc3\xc0\x7f\x22\xcc\x4f\x6f\x98\x2f\xc2\x9b\x52\xd3\xb4\x74\x7c\x0d\x2f\xd5\xbd\x00\x3e\x8e\x16\xea\x99\x09\x89\x51\x1d\x14\x45\x21\xa9\xd0\xa3\xc8\x38\x49\x4d\x06\x2a\x36\x4d\xf9\xfb\x6e\x10\x68\x1e\x26\x22\x37\x4c\x48\x1a\xeb\xa7\xe7\xc7\xe3\x7e\xe7\x6e\x37\xb8\x0d\x38\xad\xb2\xb3\xde\x22\xc9\xd9\x31\xbb\x96\xdd\xce\x3a\xc3\xf0\x79\x0e\x68\xb3\xc5\x7b\x5e\xe0\x0a\x3b\x6a\xf9\x45\x73\x99\x17\x3b\x85\xc5\xf6\xaa\x18\xaa\x02\x81\x12\xd1\x12\xf0\x5a\x1b\x35\x8d\xde\xc3\x44\x8e\x19\xc0\x60\x95\x8e\x66\x80\x91\xb9\x57\x4e\xa4\xca\x54\xb3\xaa\xee\xce\x8b\xe6\xcf\x4d\x57\xfe\x3a\x78\x74\x62\x97\x71\x13\x89\x87\x0a\x13\xd2\x82\x28\x22\xa8\xaa\x88\x19\x3c\xb6\x52\x28\x5d\xcb\x27\xbd\x5f\x40\x6a\x65\xc6\x7d\x4c\x2e\xe8\xfd\x42\x9a\x0b\x4f\xde\x8f\x6b\x7d\x3a\x52\x54\x45\x57\x64\xe5\xfd\xb4\x87\xb5\xa9\x3c\x79\x89\x22\xad\x26\x48\x3f\xed\x4f\x1a\xad\x72\x4d\x4c\x0d\x83\x1f\x27\x8b\x35\x1a\x1b\x79\x6e\xf3\x83\xe4\x40\xb9\xfd\xd8\x5a\x63\xed\xcc\x87\x53\x76\x38\xd4\x4d\xce\x2f\x39\xe8\x5f\xf9\x35\xe5\x09\x5e\x24\xa2\xdc\xa2\x4e\x84\xad\x5c\x32\x8f\xc6\xd9\x36\xc9\xd5\x3c\x7d\xf4\x48\x00\x0e\x29\x09\xff\xd0\x38\x82\x76\x3c\xc4\x85\xb7\xea\x20\x7b\x13\x2d\x83\x71\x08\x1a\x88\xa3\x0b\x1c\x85\xfb\xcf\xd1\x09\x41\x79\x47\x80\xab\x9d\xd8\x39\x75\xc9\xde\xb6\x73\x0f\x05\xf2\xba\x54\x00\xa7\xa8\xe0\x4d\x69\x15\x66\x40\x22\xd9\x7f\xeb\x13\x18\x63\x5d\x0a\x8c\xbd\x4f\x53\x6c\x82\x5d\xfd\xf2\x52\x32\x91\xd3\xa9\xf7\xeb\xf9\x7a\x17\x39\x51\xe2\x6b\xd8\x9b\x79\xd8\x6a\x9d\xc3\xba\x97\x66\xb0\x24\x3a\xe0\xde\xc0\x3f\xd4\x39\xfb\xc7\xa2\x69\xea\x66\x32\x3b\x9c\xa7\xed\xb4\xf7\xd0\x25\x45\xa3\xf0\x06\x12\x28\x71\x41\xb0\xbb\x91\x64\x8e\x26\x1b\xc7\x0e\xf4\xb0\x9e\x6c\x7f\x7a\xc0\x10\xe4\x21\x25\x79\xb8\x48\x45\xb9\xe8\x07\xff\x1d\x8a\xed\x75\xdf\x95\x48\xd4\x90\x79\xa3\x7b\xf9\x00\x73\xbe\x29\x22\xf6\x9d\x4e\x78\x6d\xd3\x83\x83\xd6\xdd\xb9\x44\xee\xe2\x78\xab\xaf\xae\x4d\x11\x39\x28\xf8\xdb\xdc\x0e\x45\xa2\xfa\x43\x3f\x50\x75\xb7\xc7\x1c\xbc\x29\x03\x5f\x7c\x04\x38\x68\xdd\x87\x97\x4f\x41\xc5\x8d\xa7\x95\x7d\xfd\x2e\xa3\x7c\xf0\x8a\xeb\xdc\x95\x0e\x51\xaa\xeb\xcd\xa7\x03\xa9\xea\x5b\x37\x70\x8d\xab\xb6\xce\xfb\x87\x26\x0a\xde\xf1\x26\x43\x50\xff\xe1\x15\x54\x4f\xf5\xf9\x85\x5f\x22\xb8\x4b\x3d\x75\x69\x13\x24\xaa\x3e\x74\x03\x55\x6f\x37\x0c\x02\xde\x0c\xf6\x62\x8d\x54\x7b\xf0\x40\xa1\xaf\x01\xe4\x45\x65\xa2\x0d\xd4\x0b\x73\x08\x59\xaa\x19\x1e\x27\xf3\xa7\xcd\x64\xbe\x78\xf6\xe9\x7f\x85\x29\x00\x12\x4a\x02\x50\x46\x36\xc1\xf0\x38\x98\xa7\xfe\xea\x1a\x35\x35\xf0\xe5\x83\x25\x36\x4d\x4a\xfd\x87\x78\x49\xaa\xee\xe2\x25\x9e\x51\x75\xd7\x6f\x08\xc5\xd7\x7d\x78\xca\xe7\xf3\xea\xae\x68\xde\x5f\x77\xf7\x1a\x3a\xbc\x69\xee\xc5\x1a\xd9\x02\xe0\xbd\x0d\xdf\x00\x90\x17\xdf\xf1\x46\xd0\x0f\x26\x20\x64\x89\x76\x58\x6d\x26\xf3\xc7\xcd\x64\xfd\x48\xb7\x83\x7b\x7f\x1e\x5e\x91\xf7\x62\x8d\x6c\x07\x90\xe1\xde\x37\x11\xc8\x1b\xfb\x84\x0f\xa0\x52\x94\x23\x64\x49\x2f\x20\x9d\xcc\x57\x8b\xc9\xd2\x3b\x13\x54\x78\x30\x08\x12\xae\x65\x21\x8d\x6c\x06\x33\xaf\xb4\xa7\x15\x54\xa6\x01\xbc\x15\x74\x8e\x60\x97\x2a\xd5\x08\x69\x3a\xd9\xac\x26\xeb\x05\xdd\x06\xb1\x7e\x9c\x38\x6a\xd1\x1e\xe9\x7c\xb8\xe7\x38\x80\xe8\xf4\x34\x92\xd3\x66\xf1\xb8\x7e\x86\xd6\x3d\x7f\xce\x19\xdb\xbc\xcb\x3c\xba\xc2\x27\xb6\x4f\xb6\xc0\x31\x8f\x7b\x0b\x9a\xf3\x34\x41\xcc\xc5\x90\x73\x75\x1b\x40\x26\xf0\xcf\xa9\x88\x48\xf6\x82\xf0\xa5\x8e\xe7\x02\x2f\xb2\xde\x72\x97\x42\x60\xa9\xc4\x57\x0a\x79\xd1\x48\xe1\x9b\xfa\x15\x24\xc6\xd9\x67\x2d\x13\x97\xc9\x7a\xb8\x7e\xed\xb0\x95\x0b\x88\x50\x4d\x92\xd9\xe5\x5a\x96\x62\x09\x13\x51\x2b\x13\xfc\xe6\xe6\x53\x0a\xb2\x9b\x99\x39\x40\x83\xdc\x66\x58\x72\xd0\x47\xb7\x33\xd1\xf6\xbf\x77\x95\x1d\x25\x15\xb1\x04\x8d\xc2\xd5\xa3\xd9\x3d\x23\xb3\xc2\x2d\x47\x90\xfb\x6a\x95\x1a\x99\xe2\x86\x53\x2b\x90\x2b\x30\xb2\x1d\x51\xc2\x46\x0e\x88\x21\xa7\xe4\xa8\xf3\x2e\x2f\x5f\xc0\x03\x8c\x1f\xcb\xc8\x91\xe3\xc9\xb9\x25\xe0\xa6\xc6\x0b\x4a\x30\x23\xd2\xe4\xc1\xe5\xf4\x48\x32\xbf\xc8\x1d\xaf\x6f\x05\x7b\x35\x37\x85\x7e\x81\x1b\x49\x63\xa9\xc6\xec\x2f\x7d\xac\x3f\x90\x55\xd0\xf6\x0f\xf3\x6c\xb1\x59\xda\x39\x73\xd6\xeb\xa7\x34\xb3\x96\xc3\x41\xea\x43\x9e\x8c\xfb\x0f\x8a\x83\xd6\xc7\xbd\x3c\xf2\xa1\x6d\x2e\x2f\xbf\xa6\x7e\x35\xb7\x8a\xc8\x9c\x66\xca\x74\x87\xc9\xd9\x23\xb1\xe7\x60\x54\x08\x99\xe4\xf4\xce\xc7\x2f\xa8\x81\x44\x07\x93\x6f\x43\x27\x8a\xb6\x69\x79\x48\x1d\x20\xb1\x4d\x15\x30\x33\x6e\x91\xc9\xb8\x10\xc2\x7c\xb7\x23\x58\x65\x4f\x06\xae\x3b\xc8\x23\xb5\x26\x9b\x0d\x25\x80\x54\x1c\xd9\xe1\xc1\x92\x88\x21\x1c\xf8\xf4\x14\xee\x74\xf3\xba\x94\x6f\x43\x27\x8a\x3c\xd6\xef\x6a\x4f\x24\x8a\x00\xd6\xf5\xde\xad\x1e\x92\x7c\x6f\xa7\x82\xb5\x47\x13\xa7\xdd\x45\x1a\xa9\x39\xde\x6e\x18\x32\x52\x6b\x7b\x87\x07\x66\x7b\x43\xe8\xca\x2d\x8e\x70\x95\xe9\x14\x6f\x7e\x95\x27\x18\x60\x15\x97\x09\xe3\x62\x49\x60\xd5\x77\xf7\x77\xb0\x4c\x75\xa8\x5a\x55\xe1\x7e\xf7\x64\xa1\xf3\x37\x02\x46\x1d\x69\x01\xfd\x74\x6d\x0c\x3e\x52\x7d\x64\x8b\x03\x4b\xa3\x87\x30\x28\xaa\x63\xfd\xe3\xaa\x8f\x51\x1f\x53\x7d\x0c\xff\x53\xab\x2f\xf7\x39\xc2\xa3\x80\xce\x1b\xe8\x6f\x01\x82\x01\x36\x0a\xd4\x1b\x9a\x91\x24\xb0\x51\xe0\x6e\xf2\x60\xe9\x0f\xb1\x79\x55\xec\x73\x84\xcd\x3f\x9d\xf0\xd0\xdf\x0e\x04\x03\x6c\x02\x50\xaf\xd6\x45\x92\xc0\xa6\x00\x74\x93\xc7\xc9\xdb\x88\x5a\xdb\xea\x85\x35\xc1\x66\xf0\x64\x6a\xf4\x37\x03\x4e\x1f\x69\x05\xfd\x68\x54\x1c\x05\xa4\x11\xb0\x3d\x1e\x24\xdd\xa4\x79\xb8\x27\x43\xec\x6e\xc6\x2d\xa3\xb5\xc8\xd9\xc4\x0f\xfd\x4e\x59\x7b\x2a\xa6\x0d\xcb\x44\x9a\x74\xf7\x54\x90\x03\x98\xe7\x81\xc8\x06\x30\x3f\x6e\xd0\x89\x31\xcc\x93\x63\x23\xf3\x8c\x0c\xfe\x3f\xd7\x55\xcd\x0f\x37\x75\x30\xa0\x08\xc1\x3d\xd7\x75\x77\xe2\xaf\x49\x5e\xbb\xda\x8e\x84\x36\x85\x4d\xcc\xca\x89\xdc\xb9\xed\x04\xad\x0c\x06\x89\x89\x6f\x2e\x5e\xe4\x6a\x8e\x60\x27\x76\x9b\x22\xb8\x09\x40\x10\xe2\x2b\x16\xa6\x7d\x1d\x13\xed\x56\x10\x6c\xfa\xda\x8b\x04\x9d\x11\xac\x06\x60\xb5\x75\xb6\x3c\xac\x9f\x1f\x1f\x83\x1d\xac\x9e\x8a\x49\xf2\xe2\x1b\x50\x18\x19\xc8\x44\x28\x40\x08\xcd\x7f\xa6\x3a\x7f\xf0\xd6\x7a\xbb\x15\x64\x78\xa0\x93\x07\xee\x97\xf6\x92\x55\xa3\x80\x7d\x18\x9e\x96\x1d\x8f\x71\x27\x23\x54\xc8\x51\x6d\xd9\xe3\xf6\x7f\x1f\xea\xf3\x99\x55\x1d\xc1\xd7\x82\xb2\x73\x74\x20\xf4\xda\xae\x29\xaa\x97\x09\x5d\x34\x5d\x04\x78\xb9\x14\x48\xa0\xe9\xe2\x66\x79\x77\x08\x5b\xef\xd8\x80\x40\x37\x1d\xd6\xba\x62\xeb\x27\x94\xda\xb7\xac\x29\x44\xfa\x26\x4f\x61\xb0\x8e\x18\x15\x0f\xd8\x50\xcf\x79\x9e\xb1\x7e\x5e\x41\x98\xe7\xec\x18\x20\x97\xb3\x63\x44\x7b\xd5\x17\xd6\x64\x1d\x69\xb8\x6c\xb0\x08\x9d\xf8\x8d\x7d\x7f\xad\x9b\x3c\x40\x50\x42\x0d\x49\xee\xf3\x7c\xfd\x88\xd2\xcb\xba\xfa\x1c\x20\xd6\x83\x28\x4a\x4f\xe9\x63\xce\x70\xc9\xce\xac\xcb\xd0\x9e\xec\xb2\x90\x06\xda\xa8\x08\x48\x97\xbd\x44\xb4\x77\xd6\x89\xb7\x86\x70\x95\xfa\xb7\x6b\x56\x16\xc7\x22\xa8\xc0\x28\x15\x04\x4e\xd3\x1b\xda\x39\x4d\x9f\xf0\x76\xbe\x34\x7d\x27\x77\xdf\x03\x24\x15\x58\x44\x5d\xf7\xd7\xa2\xec\x8a\xca\x3f\x78\x96\x01\x7e\x08\x11\xdf\xd8\x59\x7a\x6a\x6a\xda\x55\x11\xea\x25\x2e\x58\x69\x43\x1a\x61\x8f\x51\x3c\xb8\x76\x58\xf5\x3f\x24\xe3\x73\xd6\x1d\x7a\x67\x66\xdf\x64\x87\xdf\x18\x65\x8a\x3d\x18\x4e\xb6\x98\x21\x4f\xa0\xe9\x8b\xc6\x7a\x3d\xb8\x00\x01\xaf\x8e\xbb\x45\xef\xb3\x43\x7d\xf9\xae\x92\xe2\x59\xb9\x43\x1b\xfd\x30\x9b\x3a\xbe\xe0\xfb\xa1\x06\x46\x22\x5f\x84\x94\x1d\xa6\xaf\x1c\x21\x20\x7c\x59\xd4\x65\x5d\x71\xf0\xa4\x12\x44\xf0\x92\xf6\x9b\x7c\xa9\xcb\xcc\xe3\xf0\x3e\x3b\x94\xc5\xf4\xb5\xa8\xf2\xfa\xd5\x7e\x72\xca\xd8\x4f\x34\x3d\xe2\xe1\x9a\x94\x38\xc4\x1a\x08\x24\x3c\x59\x84\x91\x88\x00\x14\x0e\xe7\x40\xd6\x76\xdc\x00\xc3\x13\x7b\x94\x59\xdb\x57\x0e\xc4\xd3\xd9\x37\x7d\x7d\xd1\xdd\x6e\x8e\x88\x21\xc8\x6f\xc9\xce\x3c\x06\x3e\xe1\xbf\xf5\xff\x41\xf3\x68\x47\x3e\x7e\x0c\x17\x18\x3c\x33\x33\x76\xc4\x22\x12\x36\x0e\xd7\x6c\xed\xb3\x58\xbb\x72\xea\x8d\xc1\x88\xdc\x01\x91\x82\x4e\xcc\x04\x43\x3d\xa0\x0e\xfb\xb2\x79\x9b\x49\x4a\x7c\x12\xcc\xee\x79\x27\x17\x79\xbe\x25\xbe\xb1\x27\x4a\xf6\xfe\x7f\xd6\x29\x7a\xef\xe1\xf9\x6a\x12\x8a\xc5\x8f\xad\x69\x30\xa6\xdf\x38\x31\xa2\x5a\xe3\x71\x7d\x8f\xb0\x97\x86\x1d\x8b\xb7\x0f\xc9\x29\x48\x90\xb1\x14\x5c\x2e\x61\x2a\xa6\xe6\x33\x55\xe0\xe1\x52\xf7\x58\x7d\xf4\x4b\xe1\xfc\x55\x41\xdd\x00\x30\xc2\x19\xc9\xee\x82\x21\x7d\x1d\xd0\xcd\x33\xf5\xe9\x9c\x9f\x32\x21\x08\x83\xd9\x30\x4b\x7d\xb9\x4b\xac\xcb\xb5\xc4\x03\xc1\x38\x17\xf8\xcc\x72\x88\x97\x3b\x96\xc9\xc1\x8a\x31\x35\x4f\x32\x43\x15\xc6\x71\xc2\xcd\xe0\x89\x09\xc0\x8f\x02\x09\x51\x87\x18\x92\x68\x49\x4d\x94\x38\x41\x03\x69\xea\xdc\x63\x49\x27\x25\x88\xf9\x82\xa0\xbe\x6d\xb5\xb3\x6f\x2a\x11\x99\x32\x90\xa8\x74\xcd\xa0\xe8\xd8\x39\xe2\xfa\xdc\x88\x24\xea\x9a\xb4\xc7\x3e\x80\x71\xaf\x17\x2b\x43\xce\xa1\x8b\x38\x3f\x75\x48\x39\x10\xe3\xcc\x12\x49\xd7\x03\x4b\x4b\x0f\x5e\x7d\xb2\x45\xc3\xe7\x4a\x5d\x36\x3c\x26\x59\x16\xc9\xb5\xf4\x5d\xf6\x75\x5e\x4c\x49\x5d\x66\xd8\xed\x18\x31\xc5\xdb\xc7\xe5\xc6\x2d\xdd\x15\xe6\x39\xd9\x94\x7f\xb9\x96\xe0\x56\xb2\x5d\x9e\xd8\x5f\x10\x79\xb1\xe4\x30\xf6\x55\xf8\x08\xca\x89\x18\x04\x78\x06\xe5\xe5\xe5\x2d\xe1\x43\xa2\xa8\x86\x67\x4a\x2e\x6f\xb4\x63\x43\x71\xf9\xea\x54\x08\xbf\x23\xef\x78\x2b\x14\x41\x65\x7a\xc3\x80\xce\x3b\x70\xca\x81\x1b\xfc\x34\x73\x57\x72\x31\x08\xa3\x0e\x54\x22\x85\x11\x2d\x19\x2d\x92\x6c\x78\xb0\x82\xd8\x80\xb6\x7e\x7e\x02\x56\xcb\x25\xc7\xce\x97\xee\x3b\xd1\x75\x4f\x97\xb7\x84\x67\x67\x54\xbb\xd0\xf2\x5e\x0f\xc7\x99\xaa\x17\x3d\xad\x37\x6b\xe8\x43\x70\xd3\x8e\x02\x12\x09\xfc\x93\x1f\x23\xf0\xd4\xa6\x43\x22\x89\x85\xf9\xf8\x2a\xb7\x4a\xd8\x13\xef\x5e\xaa\x20\xf0\x29\x4d\x16\x2a\x8d\xb7\x49\x62\x67\x19\xbe\x20\xc1\xa4\xed\x9a\xba\x7a\xb1\x0d\x26\x00\x34\xe3\xd2\xac\x20\x34\x26\x36\xb6\xeb\xaa\xcb\x8a\x4a\x3f\xaf\xe1\xa4\x68\x33\x63\xcb\x16\xeb\x6f\x27\x6f\xfc\xa2\x78\xde\xde\x79\xa9\x51\xbc\x11\x8f\xbd\x4f\xef\x74\x98\x23\x57\x22\x3f\xa8\x2e\x97\xba\xb5\xfe\xf6\x6a\x3e\x46\x20\x4e\x40\xfc\xa8\x89\xc8\x3c\x78\xc3\x3a\x0f\x47\x6c\xbb\xec\xf0\xdb\xb4\x6b\x86\x4c\x11\x31\xaf\xb3\xda\x67\x5a\x24\xf9\xb2\xa8\x7e\xd3\xa9\x6c\x84\x29\x59\x0f\x13\xb8\xfe\xdb\x67\x6a\x76\x74\x73\x60\x4a\x7a\x6c\xa7\xec\xed\x52\xd6\x0d\xe8\x6f\xf0\x5d\xbe\x0a\x1b\x8e\x9b\xa3\x9f\x13\x30\xa9\x89\xb4\xc1\x19\x9e\x2d\xd7\xda\x0c\x40\xf0\xd4\x43\xcf\xfc\xd6\x28\x9d\xfc\x11\x56\x60\xdf\xb0\x2c\x3f\x34\xd7\xf3\x3e\xc9\x26\xa8\x34\x88\xff\x4e\x52\x90\xd3\x30\xcf\x26\xc5\x91\xfa\xce\x2a\x2a\x9d\x70\x1c\xa1\xef\x47\xb9\x65\x55\x71\x16\x35\x68\x2f\x45\xf5\xef\xb8\xa6\x24\xb3\x75\x9b\x14\xd5\xb1\xa8\x8a\x8e\x25\xe2\x3d\x5d\xb5\x46\x5f\x38\x13\xb8\xa5\x73\xcf\xe9\xea\x69\x63\x44\x43\x72\xd7\x51\x34\xae\x99\x04\xcb\x59\xf4\x99\x85\x48\x26\x41\x61\x91\x8d\xf7\x61\xa5\xca\xb0\x33\xf2\xde\xab\xf0\x37\xa7\x22\x9e\x53\x27\xbc\x5d\xa7\x3f\x27\xd3\xe4\xcb\x9c\x9d\x93\x3f\x25\x8b\x87\x07\xb2\x9d\x6f\x43\x1e\x27\xaa\x27\xca\xc2\x48\x5d\x0e\x26\x05\xb2\xef\xc0\xe0\x1a\x1e\x62\xd6\xf9\xe0\x60\x6c\xc2\x90\x8e\xca\x4e\xba\x8d\x3f\x3b\x47\xb1\x9d\x0d\x29\xc5\xb3\xc9\xac\x38\xf7\x06\xfb\x58\xd8\x0f\xa3\x79\xc4\x26\x32\x4c\xc7\xe8\x3b\xa1\x7a\x37\xec\x4a\xeb\x9d\x2a\x7f\x53\x5d\xdd\xd3\x90\x8f\x9d\x9a\x33\x06\x95\xec\x48\x1e\x24\x3b\xf9\xb6\x05\x09\xfb\x81\x6f\xe8\x49\x8f\xc8\x95\x2c\x25\x02\x52\x88\xfe\x12\x25\x7c\xff\xe1\xc2\x2a\xfb\xda\xc5\x32\xe5\xb7\x2f\xd7\xf3\xfd\x7c\x11\x14\x4a\xd9\x2c\x0c\xb0\x77\xe3\x81\xf4\xee\x76\x81\xf5\x0c\xb6\xf9\xb2\x2d\xfa\x90\x03\x2f\x7a\x18\xd2\x52\x2f\xd2\xdd\xd0\x39\x5b\x8d\x92\xb0\xac\x65\xd3\xa2\x9a\xd6\xd7\x2e\x99\x2d\x5a\x4a\x3a\xdd\x04\x28\xb3\xf4\x81\xc2\x4b\xe4\x77\x79\xcf\x79\x42\x82\x55\xf5\x39\xcb\xa7\x65\xfd\x52\xcb\xd7\xf9\xd5\x48\xa5\x10\x7a\x50\xc3\x17\x09\xbc\x14\x8c\x39\x28\xe6\x5b\xba\xe6\x92\x78\xc1\x3d\x03\xc5\x97\xf7\x8d\xd1\x8c\xaa\x84\x9f\x0b\xf4\x8e\xa9\xed\x8e\x92\x09\x6e\xff\x90\xb2\xd5\x7a\x99\x6a\xa3\xa1\x12\x9b\x71\xb3\x37\x4f\xd3\x6f\xaf\xc9\xd7\x44\xf6\xdb\x20\xee\xb7\x13\x4c\x74\x8b\x74\xc0\xbf\x7c\x99\xf6\xf5\x7a\x30\x7b\x58\x32\xb1\xfb\x77\x50\x88\xf9\xf3\xf8\x21\x42\xea\x2c\xaf\xba\xd3\x32\x3e\xa5\xf9\x97\x2f\xe9\x83\x6e\x89\xd9\xa3\x1e\x16\xea\x42\x3c\x3e\x1a\xec\xb7\xc2\xed\xf7\xaa\x67\x8f\x7d\x67\xea\x1c\xc1\xa0\xd7\x85\x5a\x3d\xa5\x87\x75\x96\x39\xeb\x39\xc0\xfc\x97\xf6\xdb\x8b\x72\x76\xd6\x97\xb7\xf1\xed\x64\x57\xc2\xdc\x47\x79\x7f\x37\xed\x3b\xe1\x42\xdb\x61\xae\x88\x63\x36\x10\x49\x8c\xdf\xa7\xfc\xd7\x9b\x91\xb5\x94\x84\x3c\x64\xe6\x42\xdb\x08\x1c\xf7\xc3\xeb\x8b\xc0\x50\xed\xad\x25\x85\xac\x71\xce\xb8\x7b\x22\x56\x71\x62\xf9\x67\x25\x7f\xbf\x5e\x2e\xac\x39\x64\xad\x9d\xed\xd3\x4a\x3f\x0e\x26\xa3\x05\x7c\xb2\x1b\x24\x13\x35\x5f\x36\xc0\x84\xb8\x64\x45\x03\xa7\xb6\x05\xaf\x33\x01\x9a\xcc\x3a\xd6\x9c\x9d\xdc\xe8\x80\x80\x6c\x35\x82\x82\x7d\x4b\x4e\xd6\xc8\xc7\xf2\x94\xb5\xfd\x4a\xf7\x94\xb5\x85\xfd\x26\xae\x53\xc7\x7f\xad\xf7\xd3\xbc\x38\xea\x18\x00\x39\x65\xa2\xf1\x56\x03\x34\xf7\x37\xf2\x9c\xe5\x13\xf0\x29\x67\x25\xeb\x98\xf5\x76\xc2\xfc\x70\x82\x88\x2c\x2f\x1c\xa0\x85\x09\x94\xcc\xfa\xff\xea\x95\x80\xd1\xef\x32\x9f\xea\xe0\x57\xc5\x21\x6b\x71\x01\x95\x69\x14\x9e\x94\x16\x20\xae\x62\x10\x55\x63\x8c\x63\x99\xcc\xce\x59\xf3\x9b\xf0\x19\x84\xc8\xd6\x01\x7a\x2c\xb2\x94\xdb\x0a\x6d\x8c\xc5\x56\xc2\x5b\x41\x81\x04\x3a\x1f\xc2\xce\x8b\x19\x14\x70\x5d\x1a\x6a\x63\x15\x1e\x4e\x59\xf5\xc2\x6e\xc6\xa1\x98\x93\xc9\x8d\xc0\x14\x2f\xa4\x81\x94\xe4\x7e\x58\x7e\xeb\x05\xc0\xf7\x5f\x02\x38\x07\x56\x96\x16\x52\xff\x29\x02\xeb\x2b\x49\xce\x54\x10\x3e\x58\xca\x9a\x3f\xc4\x33\xfd\xff\x78\x3b\xfe\xdd\x46\x71\xe6\xab\x20\xad\x2a\xed\xea\x02\x82\x24\xa4\xdb\x3d\x69\x75\x7f\x9c\x74\x0f\xf0\x3d\x01\x4d\xdc\x94\x6f\x29\x70\x40\xba\xad\xaa\xbe\xfb\x27\x3c\x63\x33\x1e\x8f\x81\x66\xef\x3e\xad\xb4\x4d\x82\x67\x3c\x36\xfe\x31\xbf\x67\x94\xd5\x26\x3d\xc9\x7e\xe4\xd5\xac\xce\xd4\x4a\xed\xa0\x60\x8c\xe0\xa8\x66\x90\x11\xff\x21\xee\xff\xbe\x14\x9d\xb2\x35\x28\xed\xad\x31\x7e\x0c\x66\x66\x20\x39\x64\x27\x41\x52\xc6\xfc\x57\x57\x9e\xfe\x73\x2c\x2a\xf5\xa7\xaa\x8a\xd7\x28\x4b\x76\x44\xc6\x24\xbc\xc4\x6a\x52\xb3\x49\x76\x1d\x17\x65\xf1\xfa\x4d\x73\x99\x2b\xa1\xb7\x3e\xf4\x6e\x3d\xf4\xce\x87\xde\xaf\x87\xde\xfb\xd0\xd9\x7a\xe8\xfc\x97\xc6\x7d\xf8\xa5\x71\xdf\x7a\xd0\xe9\x7a\xe0\xaf\xbf\x34\xec\x3b\x71\xd8\x7f\x18\x47\xdf\x1f\xea\xf5\xa1\x2b\x9e\x54\x1f\xad\x59\x7e\x6f\xe9\xcd\x66\x64\x87\x36\xb7\xe9\x0d\xe1\x21\xfb\xb1\xc1\xee\xcf\xcf\xd9\x26\xdb\x64\x5f\xde\x77\xb9\xf4\x30\xdd\xa4\xe3\xc3\xf7\x3f\xfe\xff\x5d\x26\x4f\x6a\xe8\xca\x23\x64\x2f\x13\x8d\xcd\xa4\x50\x07\x15\x55\xb4\x6a\x54\x6b\x3e\x5d\x1c\x11\x7e\xe3\x81\xb0\x73\x61\xe4\xbe\xb2\x78\x85\x16\x96\x58\x3d\x40\x08\x92\xa8\xf8\xcd\x50\xe3\x1b\xa8\xa5\xe6\x1f\xcc\x77\x16\xb2\xba\x8a\xa8\xfd\x34\x66\x57\x99\x49\x25\xdc\xc9\x94\xe1\x2a\x14\x0c\x29\x44\x23\x2e\xe0\x32\x3c\x30\x75\xe0\x0a\x01\x60\x8a\xa9\x99\x98\xc4\x60\x50\xe0\x02\x52\x46\x85\xd1\x2d\x85\x60\x30\xc0\x7d\x26\x34\x50\x8e\xcd\x5b\xc0\xc8\xe7\x02\x75\xf9\x21\x18\x08\x38\x0e\x05\xe9\x09\x71\x72\xf3\xa8\x58\xef\x3a\x98\x2e\xd4\xde\x66\x3e\x9a\x09\x96\x0b\x46\xaa\x2d\xa2\xe5\x94\x20\x9b\x18\x9e\xbb\x9a\xcf\x83\x54\x13\x4d\x88\x9a\x9a\xc7\xc9\xc8\x30\x96\xc0\x10\x08\x24\x02\xfa\x67\xc9\x18\x71\x7e\x90\x0c\x9b\x93\x67\x26\x82\x2b\x18\x3e\xb5\x88\x96\xbf\x1a\x0c\xb3\x0a\x6e\x71\x93\x18\x67\x2e\x8c\x2a\x14\xc3\xb4\x88\x96\xef\x17\x14\x08\xc2\x8b\xbc\x26\xde\x23\x62\x2c\x53\x30\x94\x68\x09\x2b\x23\xc5\x08\x17\x21\x20\xb7\xa8\xa3\x93\x55\x92\xfd\xb8\xf6\x00\xd1\x18\x19\x15\xc6\x94\x24\xc1\x98\xa6\xa4\x80\x57\x92\x19\x1d\x82\x2f\xd6\x4f\xe9\x5f\x64\x64\xcf\x45\x75\x71\xcc\xbd\x9e\x13\x6c\xfa\xee\x17\x9c\x16\xb5\x41\x86\x7f\x87\xec\x8c\x70\xf7\xd2\x4c\x8d\xe6\x9e\x4a\x76\xb7\x3c\xeb\x85\x39\xb7\xbd\x8e\x92\x4e\x15\x27\xa9\x5e\x9d\xd4\x16\xea\x10\x78\x41\x70\x52\x53\xcc\xb5\xab\x2b\xb2\x3a\x61\x29\xaa\x55\xc5\xa0\x25\x47\x6d\x84\x8a\xcf\x23\xd1\xaa\x1e\x3e\xc7\xfb\xfc\xa4\xce\x1b\xb4\x3c\x9a\xbf\xd1\xae\x7d\xd9\x7c\xba\x3b\x8e\xff\x9c\xcf\x50\xe6\x58\xea\x58\x55\xe5\xb9\xbc\x77\x53\x14\xd9\x2d\x40\x54\xc7\x38\x9b\xdb\x83\xeb\xa2\xa2\xbf\x83\xfe\x4f\xaf\xab\x09\x22\x4a\x60\x75\x12\x4d\x64\xd2\x16\x67\x15\x57\xc5\x6b\x73\x19\x68\xcc\x9c\x9f\xbc\x41\x64\xa2\x1c\xf8\x08\xbe\x3c\xaa\xe2\x44\xbd\x77\x41\x35\x4c\x74\x7f\x93\x56\xd6\x56\x22\x82\x4a\x93\x9e\xe9\xc3\x47\xae\x3d\x05\x3c\xba\xbe\x65\x92\x4b\xa3\x67\x66\x6f\x8b\xa3\x8a\xef\xd5\xf0\x53\xa9\xda\x31\x23\x67\x9a\x33\x92\x7b\xc3\x8f\x30\xde\x37\x93\xa8\x75\x45\x5b\x7d\xd9\xa8\x07\x98\x56\x6a\xc2\x98\x0c\xd1\xf0\x9d\x2b\xd1\x8d\xf5\x6d\x2a\xc1\x49\x0d\x1b\xde\xb9\xb1\x92\x14\x3f\x77\x11\xf4\xee\xaa\xe5\x6f\xa2\x18\xb5\xf2\x1f\x51\x04\x7f\x64\x36\x40\xbf\x1f\xa8\xc7\x0d\xf6\x80\x75\xb6\x9b\x0f\x74\xba\x6c\xd0\xb9\x7a\x12\x69\xc1\x96\xf7\xf7\x04\xf9\x9c\x18\xa5\x86\xa0\x63\xb9\x98\xba\xf6\x96\x14\x97\xdd\x17\xe3\x3f\x8e\xd0\xf8\x68\xb8\xee\x36\xac\x88\xa9\x0f\x64\xbe\x9f\xbb\xa2\x7d\x9c\x7c\xf2\xb3\x5c\xcb\x3d\xbc\xb5\xcd\x4d\x66\xdb\xbb\xa2\x18\xfc\x2f\x5c\x20\x8b\x88\xbe\x27\xb8\x8d\x5c\xa3\x54\x72\x0b\xa5\x68\x38\x7c\x51\xd7\xcd\xc0\x8a\xfe\x62\x6a\x5f\xea\xa2\x67\xc0\xb1\x6c\xcd\x7d\xf3\xe2\x26\x2b\x36\xbb\x0d\x7c\xf7\xc8\x6e\x4c\x9d\xdd\x37\xf9\x3a\x4c\x88\xc6\xa9\x53\x0f\xe5\x0b\x7a\x97\xd3\x07\xfd\xe5\xc1\x3c\x10\x8a\x88\x99\x1d\x9b\xa7\x41\x74\x51\x5b\x0c\x8f\x41\x9c\xfa\x29\x5a\x07\x8d\x9d\x21\xd0\x14\xfd\xd3\x66\xd1\xa1\xa3\x08\x41\x6a\x4c\x8e\x01\xea\x20\xf9\x3c\x4c\xb6\xae\xe4\x9b\xde\x04\xac\x71\x79\x7a\x63\x0b\x58\xe6\x93\xd6\x4f\x1b\x93\x82\x63\xef\x9f\xcf\xcc\xa6\x22\x1b\x87\x82\x83\xc6\x73\xc4\x54\x24\xa6\xd7\x16\x62\xc2\xed\xc4\xca\xac\xf3\xa8\x05\x12\x04\x1d\x7a\x13\x23\xad\xe1\x02\x7b\xae\x17\xc8\x74\xa2\xea\x8f\x66\xe6\x66\xcd\x99\xe3\x04\xbe\x27\x43\xf9\xa4\x43\xb0\x22\xfb\x29\xae\x9b\x41\x91\x2a\xf6\xf8\xb3\x5f\xa0\x3e\xe2\x3e\x29\xa6\xaa\xf5\xc2\x92\x79\xb3\x3e\x92\x6e\xc3\x11\x71\xd7\xb8\x3e\xac\xf4\xb9\x2e\xa4\xe0\x2c\x35\x28\xad\x40\x5e\xa1\xdd\xe0\x7b\x9d\xc4\x0c\xce\x8d\xf1\xb3\xa9\x72\xe3\xe1\x73\x52\xe4\x71\xd4\x62\x46\xbc\x29\xd3\x77\x04\x9f\x2d\xee\xf2\xa9\xad\x94\x76\x15\xa6\x65\x7f\x4e\x65\x7f\x8c\xca\xba\x2f\x4f\xca\x31\x81\x67\x58\x78\xf7\xf8\x58\x74\x43\x04\x7f\xe2\xa1\x69\xaa\xa1\x6c\xa3\xa6\x9a\x66\x9e\xd7\x10\x72\x7a\x8a\xaa\xd2\xab\xe7\xab\x89\x01\xe6\x6e\x50\x2f\x03\xb7\xac\x39\x0f\x81\x15\x04\x6e\xd6\x86\xca\xde\xed\x0f\xb7\x42\x2b\xcd\xc7\x32\x81\xc4\x6b\xe4\x70\xb0\xcc\x62\x49\x1b\x5b\xdd\x0f\x55\xd4\xb0\x06\xa0\x9f\x61\x3a\x14\xd6\xc6\x89\x09\x33\x1a\x0e\xd6\x46\x2b\x36\xa8\x1a\x82\x3d\x37\xda\x07\xa6\x1f\x60\xad\x46\xd9\x79\xe3\x77\x5f\xff\xe0\x92\x34\x6b\x62\x04\x68\x26\xe2\xf2\xc9\x40\xc9\x96\xc9\x9e\xde\x48\xb4\xc8\xc9\x5e\x82\x5d\x29\xbe\x4b\x0b\x29\x52\xfc\xee\xef\x65\xff\x7c\x61\xa5\x39\x71\x6f\x31\xf7\x49\x94\x25\x0d\xee\xbb\xbb\x09\xf5\xf7\xaa\x5c\x4b\x05\x3b\x72\x98\xb1\xd3\xbd\x6d\x77\xe3\x7d\x10\xbe\x07\x5c\x43\xb6\x5f\x6d\x2e\x74\xca\x51\xbd\x29\xe9\x2d\x4c\xe4\xcc\xcc\x91\xf3\x97\x1e\xcb\x2e\xe3\xe5\x1c\xcf\xc2\x80\x46\x66\xf4\x66\x03\x83\x5a\x97\xbe\x14\x6a\x7e\x7b\xc4\x36\xf7\xff\x55\xc7\x81\xa7\x66\x0d\xcc\x05\x34\xfe\x3e\x9b\xd6\x75\x9c\x93\xa6\xa9\x68\x6c\x97\x16\x84\xd8\xe1\xa3\x6f\xbf\x79\x11\xc8\xcd\x9a\xea\x9c\x89\x31\xca\xe0\x8e\xed\x1f\x7f\xb4\xfd\x47\xe6\x83\x53\x03\xc8\x21\xc0\x8d\xa0\xdd\x39\xbf\xa1\x43\x01\xfc\x08\xa6\x81\x5e\x55\x0f\x46\x85\xaf\xa9\x3b\x77\xcd\xcf\x51\xde\x12\x7b\xb4\x1c\x39\xe8\xfe\xd5\xe9\x6d\x82\x49\x7f\xf7\xd2\xb4\xa2\x40\x23\xca\x32\xdf\x6e\x0f\x5f\xb5\x28\x43\x98\x48\x62\x20\x00\x46\x39\x48\xc4\x53\x73\x5f\x56\x0a\xbc\x7f\x35\x04\x21\x24\xfb\x7d\x46\x5c\xc0\x5b\x46\x0a\x75\x75\xeb\x9f\x15\x55\x65\x5b\x5b\xd7\x5a\xfb\xdd\x6e\x05\xbf\x66\xda\xe4\x7f\x15\xf0\x2b\xca\xa9\x44\x9e\xa7\xbc\x17\xcb\x65\x14\xc3\xd0\x7d\xd6\xd5\xc7\xb4\x7a\xe9\x8b\xa0\x9e\x11\x64\x1b\x51\x0d\xc4\x05\x60\x6e\x40\x27\x27\x86\x57\xcb\x31\x10\x54\xe5\x86\xc6\x6c\x73\x29\x7c\xc6\x30\x0e\x79\xfb\x12\x65\xc4\x26\x6d\x4f\x59\xcd\xb9\xc8\x92\x69\xce\x3c\xce\x00\x22\x4a\xb2\xde\x35\x14\xf3\x57\xc2\xfd\x86\xac\x13\xb1\x57\x8a\x99\xb8\xb1\x1f\xa6\x83\x86\x4d\x2c\x70\x0e\xf6\xb1\xe0\xbd\x6c\x02\x4d\x84\x16\x70\xa3\x38\xbb\xfc\x60\x3c\x2a\x51\xda\x6e\xda\xe0\x90\x92\xa2\xfa\x59\xbc\x1a\xcf\x5d\x6f\x0d\x6a\xf9\xc2\xac\x99\xc9\x53\xd8\xcc\xec\x76\xe4\x21\x03\x98\x2c\x83\xeb\xa2\xc2\x19\x9c\x70\x69\x61\x0f\x10\xfd\x6c\xe2\x7e\x50\xad\x89\xd3\x17\x57\x99\xbf\xa7\x88\x46\x74\xdf\xbe\xb8\x6b\xc6\x43\xaa\xd9\xe0\x87\xb2\x43\xfb\xae\xe6\xdf\x82\xae\x79\x10\x2a\xa6\x7d\xbb\xe7\x3a\xe1\x92\x3a\xbb\x2e\xa5\xc8\x40\xcd\x8d\x26\xa7\xb2\x87\xe4\x18\x25\x8b\xea\x65\xd2\x87\x0e\xd5\x17\x21\x1c\x89\x4b\x52\xca\x52\xd1\x69\x01\x4f\x94\xdc\x17\x5d\x1f\x75\xe3\xbd\x26\x78\x61\x26\x3b\x67\x05\x4d\x7e\xe3\x2b\x70\x26\xb6\x60\x91\x55\x52\x6e\xd7\x80\x0d\x45\x77\x56\x83\x05\x4a\xd7\xc0\xf4\x55\x79\x54\x71\xf6\x66\x74\xa5\x98\xad\x65\x25\xdc\x16\xe1\x0c\x17\xb9\x16\x6e\x87\x70\x69\x7a\xca\xee\x57\x8d\x0d\xe0\xf6\x08\x67\x78\xdb\xb5\x70\x39\xc2\xe5\xc7\xbd\x52\xf9\x7a\xb8\x03\xc2\x19\xd6\x56\x86\x4b\xfa\xb6\x2a\x07\x9d\xd6\xd9\x57\xcb\xce\x64\x6e\x37\x8e\x9d\x8b\x58\xa3\xc9\x3d\x35\x9f\x54\x03\x3b\xc8\xe8\xb6\x08\x9c\x54\xea\xac\xea\x93\x57\xfc\x75\x42\xe8\xa6\xf4\x5e\x1a\x02\xe3\x98\x04\xd7\x6b\xce\x71\xad\x1f\x28\xd2\x3a\xca\x91\xee\xee\x9e\xaf\xdc\x4e\xee\x24\xd6\x8e\x1f\xe5\x61\x3e\x56\x2a\x9e\x85\x97\xa3\xfe\x49\xb8\xd8\xd1\x29\x2b\x0f\x1e\x14\xf2\xd0\xd0\x38\xb5\xf9\x20\x10\x18\xa1\x98\xd3\xac\xa7\xf6\x04\x9c\xfa\x68\xd3\x1f\x37\xde\x2f\x82\xde\x69\xc5\xd9\x29\x53\x35\x85\xb1\xf8\x09\x5c\x78\x99\x15\x9d\xba\xec\x83\xb8\x21\xfc\xd3\xbd\x21\xdc\xa4\x7d\xd7\x20\x64\x86\x44\xe3\x9f\x2b\x4e\x14\xd1\xe7\x58\x8e\xeb\xb9\xec\x4b\xed\xad\xe8\x41\x24\xc7\xa2\x7e\x2e\xfa\x28\x81\xf8\xd0\xf1\xf0\xa0\x0b\xb5\x1f\xba\xe6\x87\x32\x0c\x75\xb2\xcd\xe7\x50\x68\x16\x20\xc6\x43\x3d\x80\x8a\xfe\x24\xe1\x2a\x5e\xca\x5e\x47\x8a\x09\xcb\x00\x1e\x6a\x6d\x28\x22\xb3\x26\xd5\x40\x5b\xd0\xdf\x80\x3a\x36\x34\x67\xc9\xb9\x2b\x75\x74\xac\x83\x1a\x87\x2c\xac\x4f\x0a\xa0\x27\xcd\xd0\x02\x95\x3f\xcc\x94\x9d\x8a\xfe\xb1\xe8\xba\xe2\xf5\x5b\x1e\x65\x22\x1a\x98\x36\xea\x79\x43\xb1\x3d\x4c\xd7\x05\x01\x02\xf3\xe5\x5f\x68\xbd\x24\x89\xc9\xb5\x4f\xd6\x5b\x3f\x85\xc1\x69\xc6\x5c\x7f\xb7\x77\xf2\xe1\x23\x08\xc7\x03\x78\x1e\x5d\x3a\xb3\x18\xa8\x27\x0f\x1d\x95\xcd\x3a\xb4\x4c\x07\x26\x1e\xf7\x07\x86\xdc\xf5\x35\x63\x43\x9c\x7c\x6c\x22\xc6\xa5\xe1\x19\x17\x21\xe7\xa5\x99\x94\x99\xcb\xa4\x60\x56\x71\xe1\xbd\x81\xab\xd2\x35\xc3\x43\x9c\xde\xab\x93\x30\x2e\x0d\x0f\x5d\x90\xe8\xe8\xb6\x13\x47\x31\x4b\x06\x64\x0e\xf7\x47\xb6\xdd\xed\xaf\x1a\x16\xe0\xe3\xa3\xf2\xb1\x2d\x0d\x69\x72\x67\x72\x46\x65\xd2\xc6\xcd\x40\xa2\xdf\x4f\xe0\x58\xa2\x6b\xa2\xe6\x93\xe6\x72\x7e\xb3\xe3\xb4\x59\xc7\x85\xa9\x03\xe7\xad\x6b\x66\xcf\x62\xf5\x26\x50\xc2\x29\xce\xa1\xb4\xd2\x6a\xf1\x15\xa3\x4f\xd5\x75\x8b\xb7\x16\xde\xb2\x88\x70\x25\x91\x90\xc4\xfb\x1f\x25\x12\x50\x5e\x4f\x24\x59\x2b\x93\x07\x97\xb3\x1a\x1d\xc1\x64\x96\x16\x9b\x9e\x5b\x58\x2e\xe0\x50\x76\xcd\x08\x2d\x56\x6f\xb9\x48\x38\x97\x06\x39\x79\x86\x39\xc7\x24\x6a\xe7\xd7\xdc\x46\x26\xf7\xb6\x70\x50\x82\xa3\xda\x55\x77\x9c\xc1\xea\x1d\x95\x12\xce\xe5\xa3\x12\x5d\xce\xe8\x18\x5d\x09\x6c\xe1\x7c\x83\xcc\xda\xfe\x10\xd1\xff\xed\xba\x43\x13\x90\xf2\x11\x8a\x28\xed\x08\xa5\x24\x02\x92\x85\x2d\x68\xfa\x70\x82\x22\xe5\x52\x18\x2c\x7d\xdc\x41\x52\xd5\xa3\x8f\x04\x53\xe6\xba\x39\x7e\x02\x81\xc5\x5a\xed\xb7\xf1\xc3\x4d\x93\x6d\x1f\x0d\x4d\x0b\xb2\x55\x73\x19\x36\xe3\x0f\x95\x7a\x18\xec\x2f\x5c\x7d\xab\xc7\xe0\x68\x59\xa5\xa9\xb0\x4a\x35\xf9\xe1\x8c\x96\x57\x54\xec\xcc\x69\x1b\x25\xd5\xaf\xaf\x21\x96\xc9\xd4\x7b\xbb\x2e\xda\xf6\xf5\x6d\x6e\x52\xf2\xf4\x89\xcd\x4a\x68\xd4\x38\x30\xa2\x01\xbd\xf5\xde\x9f\xa3\x01\xbd\x5d\xd4\x80\xca\x2d\x64\xdd\xee\x6d\xfb\xf2\xc5\x28\x2a\xe3\xaf\x56\xb1\x20\xbf\x9c\x37\x59\x4f\x4b\x0a\x09\xfd\xa2\x92\x56\x24\xf1\x40\x49\x3c\x84\x48\x4c\x50\x1c\x65\x81\xca\x01\xbb\xf6\xf7\xaa\x94\x57\x5a\xd4\x0a\xaa\x1c\x2d\xfc\xb9\x2a\x10\x54\xab\xcf\xdb\x98\x88\x6a\x41\xbb\xfa\xcc\x9a\xda\xbf\x57\x90\x4c\x37\x44\x97\x79\x38\x6e\xfe\xb8\xff\x59\x0c\xc7\x47\x39\xec\x78\xae\x03\x47\x03\xe1\x77\x41\xbd\x67\x49\x8a\x0b\x97\xbf\x9f\xb2\x71\x2c\x76\x64\x25\xef\x85\x1e\xb9\xc8\xef\xe7\x5e\x3c\x7c\x59\xd1\x9d\x5c\x9e\x72\x1e\x34\x71\x6b\xc4\x4b\x15\xb6\xa9\x34\x32\x87\x23\x10\x6e\x11\x86\xfb\xad\x2a\x03\xc9\xc2\x8c\x83\x12\xc2\xb6\xaa\x3e\xa1\x67\xf8\xab\xea\xe2\xd4\x4e\xe7\xdf\x17\x75\xd1\xd9\xfb\xe1\xab\xbe\xfa\x68\x43\x94\xda\x4d\xee\x31\x19\x5d\x16\x84\x47\xfd\xf0\xa5\xab\x3e\x7f\x3a\x95\xc5\xb9\xa9\x8b\x4a\x27\x6f\x6f\x55\xbc\xfb\xa2\x1d\x6d\x63\x4f\x57\x1d\x25\xdd\xa5\xd6\x5e\x04\xa8\x24\xa6\x92\x41\x94\x1c\x9b\xa7\xb6\x52\x83\x32\x2a\x5d\xf4\xf3\xc0\xa7\x0f\x45\x59\xa9\x93\xa4\x7e\x8d\x92\xaa\xe9\x8d\x1a\x02\x64\x28\xba\x15\x8c\x2a\x6b\xca\x99\x41\xd3\x3d\xa0\xb9\x75\x0b\xa9\xc0\xfc\xbc\x5f\x14\x55\x02\x7f\xe2\x54\xf4\x41\x96\x5a\x66\xac\xae\x1a\x2a\xd3\x85\x96\x5b\xa1\x2a\x8d\xdc\x72\xe7\x16\x2e\x33\x0a\x73\xa1\xe5\x5e\xa8\xf5\x23\xb7\xcc\x9d\x96\x56\x29\x2e\xb4\x3c\x88\x9e\xe2\x4e\x4b\x58\x7a\xa1\x9c\x9f\x99\x9f\xe0\x76\xe7\x9a\x4d\xed\x9a\xa4\x48\x71\x65\x6e\x18\x51\xb8\x2c\xff\x45\x5f\x74\xa7\x3f\xb3\x7e\x25\xc7\x7a\xa7\xa1\x5d\xcb\xce\x1b\x30\x2b\x9a\xb6\xc4\x75\xbd\x38\xab\x7a\x8d\xb3\x92\x65\xac\xc9\x14\xaf\xc6\x3d\x30\x78\x33\x8c\x2c\x13\x42\x09\x78\x4b\xa1\xb6\xa9\x39\xf5\x58\x4b\xaf\x1e\xa4\x48\xa0\x5f\x43\x3e\x30\x83\xd6\xa3\xc9\xa7\xa8\xfe\xb1\xbc\xb0\xc5\x6a\xdd\x81\x8d\x25\x56\xb4\x0e\x6c\x6c\xa9\xe8\xf3\xf4\xc6\xf0\xba\x05\x56\xdf\x1a\xde\xf5\xd9\xb2\x90\x9d\xc6\x85\x4d\x6c\xbd\x64\x63\x93\xd1\x6e\xa3\xcf\xe7\xb8\x2d\x86\x41\x75\xf5\x1b\xf7\x00\x08\x18\x61\x35\x9b\xfe\xfe\x49\x1b\x79\xce\x97\xf2\xa4\xa2\xe4\xa9\x39\xfe\x30\x6c\x09\xf3\x95\x99\x22\x1d\xc0\x05\x81\x5a\x01\x82\x38\xec\xb7\xf6\x75\xb3\xd4\x08\x53\x93\xb0\x88\x0a\xc7\x2f\x19\x02\xe2\xd5\xd3\x62\x87\x80\x8b\xbc\x05\xbe\xdd\x87\x46\xb3\xde\x50\xcd\x98\x70\x93\x51\xea\x7c\xdb\xdf\xdd\x6c\x50\xcf\xed\x7c\xce\xb3\x1b\xa7\x1d\xff\xae\x05\xa0\x8d\xd0\x29\x7a\x41\xfc\xab\xfd\xae\x7a\x1d\xeb\x4e\x45\x4b\xb1\xa1\x60\xa2\xa4\x7d\x71\x29\x61\xdf\xb3\xfd\x78\x42\x2e\x51\xf2\x5c\x9c\x2f\xee\x91\xa4\xee\xd4\xf1\x21\x0d\xf9\x36\xfb\xf8\x46\xde\x79\xdc\x9c\x86\x6b\xde\xaa\xa7\xf7\xff\x05\x00\x00\xff\xff\x52\x61\xb6\xc6\xd3\x41\x03\x00") +var _distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8Css = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\xbd\x5d\x8f\x2b\x3b\x92\x20\xf6\x57\x72\x6e\xe3\x02\xa7\xfa\x48\xea\xd4\x67\x55\x49\xe8\x8b\x59\x0f\xb0\xf6\x02\x3b\x36\xe0\xd9\x01\x76\xd0\xb8\x0f\x29\x25\x55\xca\xb9\xa9\x4c\x4d\x66\xea\x54\x9d\xab\x2d\xc3\x4f\x6b\xf8\xd5\x3f\xc1\xcf\x7e\xf7\x83\xdf\xfc\x53\xf6\x97\x18\xc9\xaf\x64\x90\x11\x24\x53\x55\xa7\xdb\x53\xd3\xf7\x54\x25\xe3\x8b\x64\x30\x18\x24\x83\xc1\xbf\x3f\x9c\xb2\xa6\x65\x5d\xf2\xd3\x3f\xff\xa7\x7f\x3f\x7d\xfa\x69\x37\xdb\x5f\xcf\x17\xd6\x4c\x9b\xe2\xe5\xd4\x4d\x66\xd5\xf5\xbc\x67\xcd\xed\x9c\x35\x2f\x45\x25\x3e\x6e\xe7\xb3\x75\xc3\xce\xef\xfb\x3a\xff\x3e\x39\xd4\x39\xbb\x1d\xeb\xaa\x9b\xbe\x32\x5e\xb8\x4a\xd3\xf7\xac\xe9\x8a\x43\xc9\x26\x59\x5b\xe4\x6c\x72\x2c\x5e\xae\x0d\x9b\x1c\xeb\xba\x63\xcd\xe4\xc4\xb2\xbc\xff\xe7\xa5\xa9\xaf\x97\xc9\xa9\x99\xb4\xec\xd0\x15\x75\x75\xcb\x8b\xf6\x52\x66\xdf\xb7\xfb\xb2\x3e\xfc\xf6\x9e\x5d\xf3\xa2\x9e\xb0\xf3\x9e\xe5\x93\xe2\xfc\x32\xa9\xf7\xff\xca\x0e\xdd\xe4\x5b\x91\xb3\xfa\x76\xce\xde\xa6\xaf\x45\xde\x9d\xb6\xf3\x34\xfd\xf9\xbd\x97\x61\x72\x69\xd8\x6d\x9f\x1d\x7e\xeb\xe9\x56\xf9\xf4\x50\x97\x75\xb3\xfd\xc3\x71\xdd\xff\x08\x51\x7b\x08\xf9\x39\xcd\xfa\x9f\xf7\xd9\xa1\xae\x3a\x56\x75\xc9\xa5\x11\x04\x5e\xeb\x26\x9f\xbe\x36\xd9\x65\x5b\xd5\xcd\x39\x2b\xdf\xb3\xa4\xed\x9a\xba\x7a\xe9\x4b\x13\x5e\x57\x41\xe1\x70\x6d\x1a\x56\x75\xff\xd0\xff\xf1\x2e\x41\xba\x6c\x5f\xb2\xa4\x3b\x29\x26\xcb\x4d\xff\xf3\x3e\xdb\x5f\xbb\xae\xae\x26\xbd\x0c\xb7\xb2\xa8\xd8\xf4\xc4\x54\x33\xea\xc2\xec\x76\xb8\x36\x6d\xdd\x6c\x2f\x75\x51\x75\xac\x51\x05\xed\xec\x94\xb5\xd3\x2c\xcf\xeb\xaa\x4d\xe4\xb7\x59\xd1\x4e\x4f\xf5\x37\xd6\xb0\x7c\xe2\x01\xdb\x72\x98\xc9\xec\x58\xb0\x32\x07\xe5\x7d\xad\x9b\xba\x44\xe9\x05\xa1\x23\xc8\x16\xd5\xe5\xda\xc5\x52\xe5\xc0\x11\x44\x5b\x56\xb2\x43\x97\x88\x7f\x62\x89\x03\x24\xc1\xe4\xf6\xfb\xb4\xa8\x72\xf6\xb6\x5d\xbc\x1b\xf5\xef\xd8\x5b\xaf\xec\x75\x57\x1c\x8b\x43\xd6\xeb\x63\x92\x6d\xab\xba\xfb\x22\x61\x1e\x26\xd9\xac\xcb\x5e\x24\x89\x1e\x7a\x9a\xb3\x43\xdd\x70\xd0\xed\xb5\xca\x59\xd3\x77\xad\x50\xb4\xfe\x3f\xbf\xcc\x7a\xdd\x6d\xa6\xdf\x0a\xf6\x3a\x39\x75\xe7\xf2\xa6\x7a\x3d\x4d\x7f\xde\x19\xca\xab\xc6\x5b\xc9\x8e\x9d\x1a\x66\xfd\xef\x6a\x94\xf5\xd2\x65\x6d\x5b\x1f\x8a\xac\x2b\xbe\x31\x05\xd2\xd5\x97\xed\x74\xf6\xb8\x66\xe7\xf7\x3f\xfd\xf1\xef\x92\xfd\xb5\x3c\x67\xb3\xa2\x4e\xbe\xa5\xb3\xcd\x6c\x9e\xfc\x97\xe4\x1f\xff\xc3\x7f\x4a\xfe\x63\x71\x60\x55\xcb\x92\xff\x92\xbc\x14\xdd\xe9\xba\x9f\x1d\xea\xf3\x9f\xfe\xf5\xa5\x3b\x9d\xdb\x3f\x71\x8c\xe4\x8f\x7f\xfa\xfb\xdf\xd8\xf7\x63\x93\x9d\x59\x9b\xb4\x97\xa2\xfa\x77\x7c\xf8\xdc\x8e\x4d\x7d\xbe\x75\x4d\x56\xb5\xc7\xba\x39\x6f\x9b\xba\xcb\x3a\xf6\x25\x7d\x78\xef\x6a\xf7\xf3\x72\xfd\x9c\xb3\x97\x87\x77\x2e\xc9\xb9\xa8\x8a\x86\xb5\xac\x9b\x1d\xda\xb6\x17\x27\x9d\x2d\x22\xc4\x81\x68\x7f\xfc\x13\xb7\x02\xff\x76\xad\x3b\xc6\x9b\x73\x92\xe7\x93\xbc\x9c\xe4\xdd\x84\xf7\x76\xcb\x3a\x65\x56\x4e\xf3\xc9\x69\x31\x39\x2d\x27\xa7\xd5\xe4\xb4\x9e\x9c\x36\xbd\x4d\xe9\x1b\x7c\x52\xf0\x6a\x4d\x4a\xf6\xc2\xaa\x7c\x52\x16\x93\xba\x9c\x5c\xfa\x81\x3c\xe9\xfb\x2f\x6b\x58\x36\xb9\x96\xb2\x3d\xb7\xe9\xee\x92\xe5\x79\x51\xbd\x6c\xd3\x77\x87\xa4\x30\x70\x6d\xf1\x3b\x13\xdd\x67\xdb\xbb\x6b\x79\x2b\x8b\xb6\x9b\xb6\xdd\xf7\x92\x6d\xab\xba\x57\x04\x31\xae\xb9\x76\x4f\x84\xfe\x69\xb6\x9a\xe7\x3b\x57\x8c\x7d\xfd\xd6\xd3\xee\x79\xef\xeb\x26\x67\xcd\x74\x5f\xbf\xed\x10\x5b\x76\x3c\xee\x0c\x41\x56\x97\xb7\xdd\xf4\x5c\xff\x3e\xad\xdb\xb7\xa9\xf8\x7e\xae\xeb\xee\xd4\xd3\x79\x69\xb2\xef\xed\x21\x2b\xd9\x6e\xfa\xca\xf6\xbf\x15\x9d\x0d\x90\x55\x5d\x91\x95\x45\xd6\xb2\x7c\x77\x2e\x2a\x69\x4d\x97\x69\x7a\x79\xdb\xf5\x2a\x7e\x2c\xeb\xd7\xe9\xdb\xf6\x54\xe4\x39\xab\x86\x2f\xdf\xb7\xed\xa1\xa9\xcb\x72\xc7\x47\x40\xc3\x7a\xbd\xef\xc9\xd5\x97\xae\x38\x17\xbf\xb3\xff\xc8\x5e\x8a\x7d\x51\x16\xdd\x77\x01\xd1\x4b\x3a\xcd\xf2\x7f\xbd\xb6\x42\xf1\xdf\xff\x38\xd9\x66\xc7\x7e\x1a\xd8\xee\xd9\xb1\xee\x4d\xf6\x50\xf9\xa2\x3a\xb1\xa6\xe8\xde\xe5\xc8\xd9\x67\x6d\x71\x98\xe6\x4d\x7d\xc9\xeb\xd7\x6a\x82\x7e\x9d\x4a\x03\xee\x2f\x4d\xfe\xa8\xca\x2f\xf5\x2b\x6b\xa6\xa2\x3b\x34\x58\xf2\x47\xbc\x0b\xde\x85\x02\xdd\xc4\x97\x6d\xfa\xce\x0d\xbc\xfc\xb3\xef\x94\x32\xbb\xb4\x6c\xab\x7e\xd9\xc9\x82\xf6\x92\x1d\x84\x1e\x75\xf9\xa4\x3b\xdd\xb4\x5e\x89\x26\xc9\xca\xe2\xa5\xda\xf6\x23\x5c\x1a\x0b\x9f\xa2\xf0\x5e\x3b\x66\xe7\xa2\xfc\xbe\x9d\x66\x97\x4b\xc9\xa6\xed\xf7\xb6\x63\xe7\xc9\x7f\x57\x16\xd5\x6f\xff\x98\x1d\xfe\x89\xff\xf9\xef\xeb\xaa\x9b\xfc\xf4\x4f\xec\xa5\x66\xc9\x3f\xff\x87\x9f\x26\xff\x73\xbd\xaf\xbb\x7a\xf2\x3f\xbd\x7d\x7f\x61\xd5\xf4\x9f\xb2\xaa\x9d\xfc\xf3\xfe\x5a\x75\xd7\xc9\x3f\x64\x55\x4f\xba\x2c\x27\x3f\xfd\x0f\xac\xfc\xc6\xba\xe2\x90\x25\xff\x23\xbb\xb2\x9f\x26\x6d\x56\xb5\xd3\x96\x35\xc5\x71\x98\x51\x29\x05\xcb\xae\x5d\x4d\xea\x56\x5f\x66\x4a\x7e\xae\xab\xba\x6f\x15\x61\x1e\xcd\xc1\xd4\x1b\xb8\x7e\x40\xb6\xe7\xac\x2c\x8d\x82\xd9\x13\xb7\x6c\xa7\x06\x99\xd2\xf3\x7d\xff\x23\x5b\x9b\x0f\xb6\x9d\x32\xad\x97\xb7\x9d\x1c\x5a\xc2\x78\x26\xe9\x7b\x71\x7e\x51\x96\xb7\x97\xeb\x9d\xb7\xf3\x5f\xba\xef\x17\xf6\xe7\xc3\x89\x1d\x7e\xdb\xd7\x6f\xbf\x4e\x8c\x8f\x4d\x96\x17\xf5\xaf\xb7\x6f\xac\x77\x61\xb2\x52\x76\xd7\x3e\x6b\x19\xb7\xef\xed\x25\xab\xa4\x9c\x7c\xac\x4b\x9d\x05\x16\x41\xe9\xb1\x70\x0b\x80\x73\xf4\x98\xa6\xef\xbc\x59\x65\xcb\xe9\x81\x25\x86\x55\xdf\x7a\x5d\x7d\x3d\x9c\xcc\x31\xc8\x9b\x53\x29\xd1\x7c\xb6\xe0\x15\x13\xf5\xdb\xbd\x9e\x8a\x8e\x71\x8d\x63\xdb\x4b\xc3\xde\xb5\x97\xe2\x34\x1b\x37\xda\x97\xac\x77\x5a\x4c\x23\xc2\xce\x86\xdd\x9b\xed\xeb\x37\xe5\x51\x60\xbe\xd4\xf1\xf8\x2e\x7d\x9c\x7c\x70\x76\x2c\xa5\xde\x59\x2d\xd7\xd5\x17\x3e\x85\x1d\x4a\x96\x35\xc7\xe2\x4d\x0c\xff\x1b\xff\x73\xbb\xaf\xbb\xd3\x4e\x0e\xd2\xed\x4f\xc9\x4f\x3b\xe5\x03\x72\xea\x1c\xef\x72\x2d\x4b\x96\x8b\xd9\xf1\x58\xd6\x59\xc7\xb9\xfc\x5d\x71\xbe\xd4\x4d\x97\x55\x9d\x09\xc4\xbd\x53\x09\xc5\x7f\xb7\xc0\x0e\x65\x71\xb9\xb0\xfc\xa6\x1a\x57\x9a\x37\x13\xca\x74\x08\x67\xe7\x3a\xcf\xca\xe9\x21\x6b\xf2\x29\x57\xdc\x50\xaf\x71\x26\x7d\x61\x99\x7d\xbf\xed\xeb\xae\xab\xcf\xdb\x74\xc7\x27\xf3\x74\x77\xa9\xdb\x82\x3b\x0b\xd9\xbe\xad\xcb\x6b\xc7\x76\xc2\x99\x4e\x77\xfd\x54\x9e\x72\x5c\x6e\x2e\xe7\xc6\x38\x58\x36\xec\x6c\x55\x82\xc3\x2c\x0c\x98\x05\x57\x05\x0c\x6a\x69\x42\x11\x30\x2b\x73\x38\xce\x28\x7e\x6b\x00\x35\xa7\x18\x6e\xac\xb1\x8d\xc1\x3c\x82\x61\x6e\x51\xfa\xfb\x33\xcb\x8b\x2c\x69\x0f\x0d\x63\x55\x92\x55\x79\xf2\x65\xf0\xf5\x1f\x37\x4f\x97\xb7\x87\xdb\xd0\x50\xd3\x73\xbd\x2f\x4a\x16\xd3\x5e\x2e\xa8\xa7\xd9\x10\x60\xaa\xf5\x5c\x50\x4f\x23\x62\xc0\x74\x5b\x22\xd0\x54\x93\xba\xa0\x4e\xcb\x72\xff\x98\x8f\xd5\x03\xeb\x17\x18\x2c\x57\x48\xc6\x00\x16\x45\x06\x16\xda\x21\xda\x5d\x78\xdc\x3c\x5f\xde\x1e\x26\x97\xa6\xa8\x3a\xb3\x5b\xf8\xe8\xed\xa2\xba\xc5\x01\xf5\x75\x8b\x0b\x4c\x76\x8b\x03\xea\xeb\x16\x04\xd8\xd3\x2d\x2e\x34\xd9\x2d\x0e\x68\x4c\xb7\x48\xa4\xd1\xdd\x62\xac\x89\x17\x4b\x6b\xa0\x70\xf3\x14\xd7\x21\x16\xa4\xb7\x3f\x6c\x58\xba\x3b\x2c\x48\x6f\x6f\x38\xb0\xbe\xce\xb0\x81\xe9\xbe\xb0\x20\xa3\xba\x82\xe3\xdc\x3f\x40\xe6\xe9\x62\x65\xf5\x44\xce\xda\xdf\xba\xfa\x12\xd5\x17\x2e\xac\xaf\x37\x10\x68\xb2\x3f\x5c\x58\x5f\x8f\x60\xd0\x9e\x3e\x41\xc0\xc9\x5e\x71\x61\x63\xfa\x45\x61\x79\x7b\xc6\xc5\xf3\xc2\x47\x58\x3a\x72\xa0\x51\x83\x78\x5a\x57\xe5\xf7\x8f\xeb\x8f\xc3\x77\x31\x5f\x13\x7c\x65\xcb\x7c\x98\xf1\x62\xbe\xb1\x14\xf7\xb5\xc8\x99\x00\x8e\xd2\x5d\x14\xdc\xa7\xbe\x38\x02\xa9\xc1\x28\xb8\x4f\x89\x09\x04\x8f\x1e\xe3\x18\xa4\x2a\xa3\xe0\x31\xda\x6c\x20\x7e\xb8\xc7\x1c\x55\x59\xa5\x8f\x84\xaa\x0c\x6c\x3f\xac\x2d\xab\xd4\xf6\xcc\x8e\xd7\xb2\x3c\xe5\x51\x9a\xe2\x80\xfa\xb4\xc4\x05\x26\x35\xc4\x01\xf5\x69\x07\x02\xec\xd1\x0c\x17\x9a\xd4\x0a\x07\x34\x46\x23\x24\x92\xaf\x47\x06\xac\x7f\xbd\xb6\x5d\x71\x2c\x50\x34\x51\xf6\x1d\x37\x8b\x1a\xd1\x8f\x11\xe5\x93\x23\xd2\xb8\xee\x25\x22\xcd\x08\xff\x12\x61\xe1\xba\x4a\xf7\xb1\x08\x1b\x76\x9b\xa7\x33\x64\x22\x19\xc7\xb1\xb0\xdd\x8e\xb1\xb5\xd2\x7e\x07\x42\x1c\x99\x3b\xef\x24\x1f\x9e\x96\x1c\xae\xf7\x36\x9b\x3b\x31\x21\x3c\x70\x3b\x7a\x27\x87\xb0\x21\xc5\x18\x47\xd4\x6f\x20\x50\xb2\x63\xe7\xc3\xb5\x36\x3a\x2c\x4c\x0f\xe4\xb8\x11\xcb\xc5\x70\x07\xab\xcd\xfd\x9e\x91\xca\x49\xbb\x83\xf4\x0e\xd2\xe1\xe1\x63\xf0\x0a\xb6\xe4\xc8\x91\x29\x48\xdb\x83\x72\x54\x2d\xdc\x11\xc9\x89\x22\x83\xf1\x1e\xb2\xe1\x91\x68\x72\xbb\xab\x79\x3c\x23\xd0\xd2\xe3\xfb\x29\x2b\x37\x02\x52\x76\x67\x35\x7b\x07\x50\xc3\xf3\x1d\x35\x04\xc1\xde\x0c\xb4\x51\x7c\xb0\x7c\xe3\x30\xbb\x14\x5d\x56\x16\xbf\xab\xb9\x72\x38\x02\x1b\x8a\x2c\x9c\xb2\x7e\x65\xcd\x21\x6b\x99\x8d\xa1\x0b\x2c\x84\xeb\xe5\x82\x23\xe8\x02\x50\x67\x96\xe5\x45\xf5\x32\x99\x9d\x59\x75\x9d\x96\xd9\x9e\x95\x13\x7e\x42\x59\xd5\xdd\x97\x7d\x9d\x7f\x7f\x20\xc9\x18\xb5\xe7\xfb\xc7\xb7\x61\x7f\xd7\xe0\x90\x59\x50\xdb\x63\x7d\xb8\xb6\x13\xe7\xb3\x38\x11\x95\x24\xd8\xa6\xff\x41\xfb\x66\x5f\x66\x87\xdf\xe0\xf9\x3b\xce\x8d\x03\xba\xdc\xc4\x67\xc0\x2d\x4d\x53\xdc\xb0\xf2\x3e\x05\x11\x00\x38\x2b\x0e\xe8\xb2\x12\x9f\x01\x2b\x71\xe8\x80\x72\xcb\xb3\x46\xd7\x6b\xb1\x5c\xe1\x9c\x7a\x20\x97\x11\xff\x0a\xf8\xcc\xe7\xf3\x6c\xb1\x40\xf9\x5c\x9a\xe2\x9c\x35\xdf\x35\xab\xf5\x3e\x7b\x9a\xe3\xdc\x24\xa8\xcb\x50\x15\x40\x9e\xf9\xd3\x71\xb3\x24\x5a\xb2\xd2\x75\x9b\xaf\x37\x4b\x4a\x43\x7a\x38\xac\x1d\x2b\xa7\xc7\x56\x7b\x36\x47\x59\x15\xd5\xb1\x8e\x61\xd5\xc3\xb9\xac\xf8\xd7\x58\x56\xed\xf5\x70\x60\x6d\xab\x5b\x92\xed\xd3\xe5\x33\xce\x4d\x82\xba\x0c\x55\x01\xe0\xb9\x58\x3e\x3d\x2d\x0e\x28\xcf\xd7\xac\xa9\x8a\xea\x45\x6b\x65\xf6\xc4\x16\x4b\x62\xb8\x09\x50\x64\xc0\xc9\x02\x38\xe4\xd6\x8f\xab\x74\x4d\x68\x66\xf5\x32\x00\x1e\x9e\x56\x29\xad\x9e\x3d\x24\xa6\xa0\xfc\x3b\x60\x98\xa5\xcb\xe5\xe2\x99\x1e\xe3\xd3\x7d\xa1\x9b\x76\xbe\xe8\x7f\x3c\xb0\x9d\xd1\x78\xab\xfe\x07\x85\x7d\x69\xd8\x77\x3e\x58\x06\x68\x11\x5c\xe3\x87\x56\xb0\xab\xac\xff\x21\x61\x15\xd8\x63\xd6\xff\xd0\x24\x81\x59\xd9\xaf\xfb\x9f\x00\x70\x94\xfd\x10\x67\x78\x06\xac\x63\xb1\x6c\x58\xa3\x81\x8f\x59\xff\x83\xc3\xf2\x23\x47\x29\xb5\x79\x08\xb9\x24\xcc\xa6\x44\x10\x91\x4f\x76\x4c\x97\x0f\xa3\x65\xe7\x62\x5f\x97\x39\xc0\xd9\xf8\x71\x1c\xf8\x47\x08\x5f\xb4\x53\x1e\x02\x02\xc3\xc2\xee\x76\x72\x85\x67\xe0\x7a\xb9\xd8\x6c\xcf\x39\x29\x58\x8a\xfd\x5d\xfe\xb0\x90\xc2\x75\x88\x69\x29\x24\xec\x47\xa4\x08\xfb\xb7\xa6\x58\x8e\x73\x18\x92\x4d\x20\x8c\x12\x30\x2c\x8a\xed\x6b\x7b\x84\xe0\xa0\xf7\xb5\x8f\xeb\x94\x0b\xf6\x88\x57\x4e\x0b\xa0\x80\x3f\x24\x42\xd8\x81\x07\x92\x8d\xe8\x24\x80\x71\xa7\x8c\x8e\xc7\x2f\x84\xc1\x5d\x7e\x5a\x14\x03\xfe\x43\x82\x84\x97\xe6\xb6\x7c\x23\xda\xcb\x46\xba\x53\x52\x63\x47\x54\xd0\x95\x8b\x12\x8a\x5c\x0f\x78\x2c\xd9\x9b\x0d\xd7\x7f\x03\x0b\x17\x09\x47\x01\xc4\x1e\xa0\x73\x5e\x96\x89\xb3\x79\x8d\x3b\xfb\xe5\x14\x2d\x73\x75\x07\x45\xdf\x61\xa6\xc1\x02\x76\x4e\x0c\x1f\x0f\x45\x60\x42\x46\xc9\x6c\x1e\xf0\x71\x5a\xb6\x35\xb8\x87\x1a\x69\x0c\x2c\x26\xe3\xdb\x00\x3d\xdf\xe1\x24\x91\xb1\x79\x0f\x41\x72\x68\xba\x7c\xbc\xd2\xf7\xf0\x45\xc5\x83\xa5\x29\x0c\x51\x6c\x8f\x0d\xf1\x95\x06\x8a\x1d\x1f\x92\xb9\x35\x42\x5c\x9e\xe3\xc6\x88\xa4\x6a\x8d\x92\xbb\xa8\xfa\xb4\x1a\xb0\x09\xb5\x5a\xf4\x58\x51\x54\xc1\x68\x19\x29\xbb\x39\x5e\x24\x3d\x7b\xc4\xdc\x47\xd1\x37\x66\x20\xa3\x7b\xda\x03\x1d\x37\x8e\x7e\xde\x4d\xd4\x98\x2c\x24\x51\x6b\x16\x70\x08\x1a\xa0\xe8\xf4\x62\x96\xe1\x43\xc4\xf2\xae\x09\x84\x91\xc3\x05\xf5\x9c\x29\x59\xee\x1a\x3a\xa8\x57\xfc\x01\x0e\x11\x0a\x4f\x3b\xbb\x63\xf8\x46\x70\x40\x06\xd6\xc8\x3a\x21\xc3\x0b\x77\x52\x3f\x42\x3d\x62\xa8\x79\x5c\xcf\xfb\x38\xbb\xc3\x8e\x74\x29\x3f\xc2\xc0\x37\x7d\x11\x7c\xa3\x6a\x67\x8e\x6c\xdf\x2c\x68\xc0\x10\xa3\x16\xf8\x7e\x38\xf8\xc8\x31\x8b\x79\x82\x84\x1c\x77\x8d\x58\xcc\x2f\xbc\x9f\x7e\xc4\x68\x22\xbd\xc4\x11\x5c\xc3\xf4\xb1\xc1\x7a\xb7\xeb\x68\x52\x26\x86\xea\x67\x3b\x92\x08\xcb\xbb\x5b\xcb\x37\x4e\x29\xef\xf2\x2e\xf2\xc8\x44\x89\xac\x99\x70\xd2\xfc\xca\x18\x8f\xf7\xb6\xe1\xab\xda\xf5\x23\x05\x24\x05\x22\x04\xf8\x56\xb4\xc5\xbe\x64\x37\xfe\x2f\xbf\xf4\xe2\x06\x94\xc7\x0e\x46\x29\x99\x35\x0e\x7d\x6c\x15\xac\x8f\xfb\xc8\x11\x2b\x85\xb0\x06\xab\x57\x08\x09\xfb\x51\x21\x7c\xc3\x0e\x48\x05\x75\x34\x42\x34\x81\x30\x5a\x3e\xaf\x24\x60\xec\xfb\x65\xe0\xa0\xf7\xb7\x8e\x69\x24\x24\x77\xdb\x3e\x78\xf9\x2b\xe0\x0f\x4b\xe0\x33\x25\x50\xb0\x11\x3d\x04\x30\x3e\x20\xa2\x61\x75\xa4\x2c\x88\xc1\xf1\x4a\x62\xc0\x7f\x58\x0e\x9f\x13\xe1\x88\x37\xa2\xb5\x6c\x24\xaf\xa0\x3d\xaa\xb8\x0a\x55\xb2\xb6\xd5\x17\x0e\x2d\xe2\xf2\xea\x0f\x07\xd1\xd7\x80\x2c\x98\x26\xcb\x8b\x6b\xcb\x41\xe4\x05\x37\xf1\xc5\x01\x6c\x4f\x59\x5e\xbf\x4a\xc0\x37\xf9\x27\x56\xa5\x6b\x25\xae\xb9\xf1\xdb\x74\xea\x4e\x0d\x1f\x29\xd3\x43\x56\x96\xf5\xb5\x13\xb7\xba\x54\xd1\xb5\xd5\x77\xf6\x64\xc1\xb9\xfe\x1d\xfb\xda\xba\x1f\xed\x0f\xfa\xc2\xf5\xec\x58\x18\xdc\x3f\xc2\x82\xae\x01\xbf\x50\x65\xb5\xda\xfa\xf2\xb6\x33\x9a\x27\x4d\x16\x97\xb7\x64\x79\x79\x4b\x9a\x97\x7d\xf6\x65\x9e\x4e\xc4\xff\xcf\xe6\x0f\x93\x34\xe9\x7f\xe6\x58\xd9\x0e\x9c\xa3\xef\xc0\xae\xa2\x7d\x57\x8c\x4b\xc1\xc3\x02\xb6\x65\xd6\x76\xd3\xc3\xa9\x28\xf3\x07\x75\x8f\x58\x5e\x53\x92\x97\x8d\x33\x0e\xab\x8e\x01\xfb\xdf\xc5\xd1\xdf\x68\x89\xe5\x11\xae\x24\x98\x1d\xf8\xd5\x65\x83\x4a\x51\xb5\xac\x93\xb0\x0b\x97\xd6\x02\xa3\xa5\x6e\xa6\xf1\xbe\xc9\x2e\x17\x96\x35\x59\x75\x60\xb0\x17\xec\xef\x7c\xbf\x77\x5a\x74\xec\xdc\xca\x20\xca\x1d\xec\x90\xc5\xe5\x6d\x87\x78\x0e\x3b\x18\xdc\xa9\xae\x18\x2e\x66\x8b\xf5\x70\x67\x4e\xb5\xde\x21\x2b\x0f\x5f\x66\xcb\xc7\x35\x3b\x27\xd3\x5e\xe6\x07\x0d\xd1\xd5\x17\xb4\x58\xdd\x06\x6b\x58\xc9\xef\x75\x23\xf7\xe6\x1c\xe5\xdd\x81\xb3\xcf\x9d\x8c\x2d\x53\xb7\x5c\x55\xf5\x14\x67\x7e\xef\x8c\xdf\x10\xd7\x9f\xc4\x8d\x33\xf1\xcd\x09\x2e\x05\x97\x09\xab\xfa\xb5\xc9\x2e\xaa\xc9\x65\x12\x04\x79\xe8\xa8\xef\xe9\xca\xc2\x59\x71\xe8\x07\x94\xf9\x17\x0f\x80\xc9\x9a\x17\xe6\x7e\xee\x2d\xe8\xf5\xec\x7e\x17\x57\x40\x87\xd4\x08\xec\xac\x6e\xc9\xf7\xbf\x43\x66\xdb\x63\xd1\x28\x4d\x26\x35\x9b\xd7\x9f\x37\xfd\x14\xb6\x3d\xc8\x65\x31\x9b\x8b\xab\xa6\x90\xfe\x40\x4e\x90\x37\xf8\x41\xfa\x12\x1d\xd2\x44\x98\x7a\xe4\x1f\x78\x8d\x93\xdc\xc3\x65\xe6\x66\x88\xd0\x03\x59\x5d\x5e\x1e\x0e\xb1\x77\x68\xbe\x0a\xbe\x65\xdb\x1b\x02\x83\x06\xff\xdb\xa2\x21\x06\x67\x90\x86\x68\x47\x61\x08\x1e\x20\x41\x50\x04\x4d\x4d\xff\x33\x9b\xf7\x43\x4e\x58\x88\xc5\x7c\xf2\xfc\x3c\x59\xac\xd7\x93\xd9\x62\x0d\xaa\x2b\xd0\x35\x61\x6d\x71\x4c\x51\x45\x1c\x00\x2d\x6a\x3f\x24\xfc\x37\x67\x01\x3d\xb3\xc0\xca\x2b\x02\x69\x22\x4d\x69\x16\x59\x3d\xa5\x8a\xa4\x19\xb6\xbf\xca\x7e\x24\x32\x9d\xf8\x2b\xe7\x36\x94\x26\xab\x1a\xcc\xa1\xcb\x9e\xfa\x1f\x9a\x2e\xb7\x1a\x38\x61\x5d\x84\x54\x5e\x97\x21\xb5\x17\x81\x65\x04\x3d\xb7\x59\x90\x38\x34\xbc\x1f\xfe\x92\x17\x6d\xef\x74\xe4\xbf\xde\xd9\xcb\x96\x5f\xe3\x34\x03\x7e\x69\x9a\x56\x0e\xbb\x81\xd0\x41\x62\xd5\x7c\xcc\x68\x59\xaf\x27\xea\x7f\xf6\x78\xe1\x14\x7d\x0d\xc2\x25\xbf\xbb\x25\xa4\xeb\xca\x9a\x8e\xe5\x08\x6d\xe9\xb7\x18\x17\xcb\x7d\x04\x48\x9d\x4f\xd3\xd4\x8b\xe8\xad\x9f\x94\x21\xb6\x8a\x21\x61\xeb\x6b\xd7\x3b\x0f\xb8\x92\xab\xc2\x58\x0d\x0c\xf0\x2a\x6b\x1e\xfc\x29\xef\xd2\x53\x35\x48\xcc\xdf\x65\x75\x13\x37\xf4\xd2\x27\xef\xbd\xcc\x8e\xc7\x63\x62\xc5\x93\xc6\x36\x0b\xb0\xd8\x42\x07\xe3\x55\x2d\xd8\x11\x18\xe0\x5d\x66\xc1\x52\x61\xcf\xd8\x0e\xb1\xa4\xab\xc7\x43\xe4\x70\xd3\xaa\x8b\x10\xd3\xaa\xcb\x10\xd3\x2a\xa2\x68\x09\x7a\xae\x69\x45\x82\x6e\x2d\x9d\x14\x61\xbd\x23\x47\xb8\x2d\x3d\x69\xf7\x0c\xb1\x46\xd8\x3d\x63\x1d\x01\x8d\x1e\x27\xf7\x99\x46\x01\xad\x94\xc7\xee\x79\x67\x03\x87\x00\x3d\xd7\x2f\xfa\x1f\x2f\xee\xa7\x99\xf6\x08\x79\xb1\x11\xe7\x14\x8e\x34\x7d\x1e\x76\x9f\x6f\x90\x1c\x61\x7f\xa4\x91\xf5\xb6\x0c\x66\x62\xc6\xe8\x5c\xb0\x3b\x3e\xcf\x00\x1a\xba\x4c\x0d\xef\xfb\x4d\x1f\x8f\x5a\xc5\x4d\x9f\x2e\x42\x4c\x9f\x2e\x43\x4c\x9f\x88\xea\x27\xe8\xb9\xa6\x0f\xb9\x04\xb0\x58\xae\x1c\x19\x83\x9e\x38\x86\x14\x63\xfa\x0c\xb1\xc6\xb8\x7c\xab\xf5\x44\xfd\xcf\xb6\x7e\x9c\xa2\xdf\x2e\x08\xc9\xef\xb1\x7e\xba\x5e\x1e\xeb\xb7\x58\xae\x76\x30\x2f\xa3\x8f\x00\x69\xfd\xe6\xd9\x62\xb3\x5c\x7a\x71\xbd\xb5\xec\xc5\x18\xed\xf5\xd1\xf2\x62\xc3\xcd\x29\x1c\xeb\xf8\xd1\xec\xee\x31\x4b\x8b\xe5\x2a\xb1\xee\xa6\xf8\x84\xbd\xdb\xc8\x72\xa9\x13\x24\x80\x3d\xb2\x65\xa0\x7d\x51\xca\x18\xaf\x73\xc1\xee\xf8\x3c\xeb\x67\xe8\x32\x35\xc2\xef\xb7\x7e\x79\xd6\x10\x7e\x9f\x2a\x41\x6c\x9f\x2a\x42\x4c\x1f\xbf\x67\x84\x13\x73\x0d\x9f\x7b\x29\xc9\xd5\x46\x7e\xbb\x62\xe4\x00\xb7\x44\x27\x0d\xdf\x20\xd5\x08\xbb\xb7\x5c\x4d\xd6\xf3\xc9\xe6\xc9\x31\x7a\x3d\xb5\x4f\xb3\x06\x58\x75\x7c\xde\x9e\x6f\x22\xb0\xf1\x49\x73\x27\x36\x60\x7c\xa8\x9f\x69\xd3\x03\xd2\x62\xa3\xcb\x2e\x1b\x69\xeb\x08\x4e\x3f\xca\x00\xd9\xd2\xfe\x18\x9b\xea\x6b\x13\xc7\x8e\x8c\xd0\xb2\x50\x1f\x7c\xa2\x7b\x07\x94\x97\x1e\xce\xf7\x5b\x39\x79\x19\x11\x37\x74\x46\x21\x62\xeb\x8c\x52\xc4\xdc\xa9\x5b\x8e\x24\x55\xd7\xe8\xa1\x17\x23\x2d\xb7\x56\x5d\xc0\x44\x6c\x08\xbf\x8b\x49\x78\xc3\x6e\x4d\x48\xd3\x07\xc4\x1b\x63\xfd\x1e\x27\xf3\xa7\xcd\x64\xbe\x78\x76\xec\x9f\x24\xe9\x37\x81\x42\xfc\x7b\xac\xa0\x51\xb9\xb8\x65\xaf\xe0\x15\x20\x31\x62\xe1\x8b\x60\x7f\xfa\xd2\xd7\x2b\xf3\xe7\xaf\x46\x0d\xe2\x6a\x40\xc5\x19\x52\x9f\x98\x1f\x36\x77\x9c\x78\xe2\x5e\x3b\xf6\xb3\xbb\xd3\xb9\x52\x0a\x39\xbe\x3b\x30\x73\xf4\x39\xab\xda\x00\x93\xfb\x17\xd1\x71\x1b\xcd\xfc\x2a\x36\xb2\x18\x02\xc7\x6f\x08\x0e\xb9\x52\xae\x28\x6f\xd1\xb8\xcc\x6d\x7f\xf5\x99\x47\x8b\x99\x67\x61\x5b\x8d\xf7\xef\xe8\x83\x3f\xc5\x16\x5b\xd8\x57\xca\xeb\xf5\x88\xec\xb5\x16\xb2\x75\xef\x5b\x10\x57\x23\x76\x03\x61\x88\x03\x86\x3f\xc2\x26\xda\xa8\x9f\x6e\x10\x69\x69\x3f\xdf\x1a\x2a\xca\xa3\x4c\x21\x2d\xe0\x47\xed\xa0\xa0\x9c\xb8\x29\x0a\x3c\xbc\xee\x33\x0d\x5a\xf7\x46\x76\xc1\x8f\xb3\x80\x3e\x0e\x3f\xda\xfc\xf1\xf4\x10\x23\xcd\x5f\x8f\x43\x98\x3f\x55\x84\x98\x3f\x23\xc1\x84\xfd\xd5\x67\xfe\x2c\x66\xa4\xf9\x1b\xc8\x7f\x8a\xf9\x53\x6c\x5d\xf3\xc7\x19\x79\xcd\x5f\x0f\xf1\xa3\xcc\x9f\x92\xeb\x5e\xf3\x67\xe3\x8f\x30\x7f\x36\xea\x5f\xc1\xfc\x29\x96\x9f\x6f\xfe\x14\xe5\x0f\x9a\x3f\x9b\xcc\x8f\x34\x7f\x36\xaf\xbf\x8e\xf9\xb3\x7b\xfd\xf3\xcd\x9f\x8f\xc3\x8f\x36\x7f\x2a\x65\x0d\xb2\x78\xe3\xd9\x6b\xfc\x68\x84\x11\x34\x4a\x11\x3b\x08\x53\xdf\x20\x05\x3e\x6b\xe8\x32\x26\x0d\x22\xe0\x33\xc2\x26\xae\x36\x93\xf9\xe3\x66\xb2\x7e\x74\x6c\xa2\xc1\xdc\x35\x8b\x8a\x9d\xd7\x32\x4a\x20\xff\xaa\x59\x34\xfc\x3d\xc6\xd1\x10\x30\x72\xd5\xcc\x79\x05\x48\x8c\x30\x91\x08\xf6\xe7\xaf\x9a\x7d\x32\x7f\xbe\xa1\x34\x88\x8f\x5b\x35\xfb\xc4\xfc\xf0\xaa\x99\x13\x4f\xdc\x14\x53\x7e\x76\x77\xae\x9a\x95\x42\x8e\xef\x8e\x1f\x67\x34\x03\x4c\x7e\xb4\xdd\x54\x69\xb7\x10\x95\xe6\x19\xb8\xfc\x68\x84\xdd\x34\x4a\xb1\xe8\x45\x90\xbe\x0b\x29\xf0\xd9\x4d\x97\x31\x1d\x13\x68\xf2\x19\x15\x15\x98\x4e\xe6\xab\xc5\x64\x89\x04\x05\x0e\xdc\x91\xe8\x4b\xc9\xcf\x6b\x38\x25\x90\xdf\x98\x88\x96\xbf\x2b\xb6\x70\x10\x30\xce\x70\x0a\x5e\x01\x12\x23\x0c\x27\x82\xfd\xe9\x86\xd3\x2b\xf3\x0f\x88\xc6\x1b\x88\x8f\x32\x9c\x5e\x31\x3f\x7c\x94\xcc\x89\x27\x6e\x9e\x3c\x3f\xbb\x3b\xcd\x89\x52\xc8\xf1\xdd\xf1\xe3\x0c\x67\x80\xc9\x8f\x36\x9c\x32\x77\xa0\xab\xd1\x22\x8d\xa0\x17\x8b\x30\x9b\x43\x21\x7a\x44\x6d\x64\x20\x74\xbf\xfb\x6c\xa6\xc3\xd4\x73\xb4\x3c\x30\x19\x63\x31\xd3\x74\xb2\x59\x4d\xd6\x0b\xe4\x74\x59\xb1\xc6\x4e\xd7\x39\x33\xaf\xb9\x14\x30\x5e\x0b\x22\xdb\xfb\xbe\x23\x6a\x25\x5d\x9c\xb1\x14\xac\xfc\x14\x46\xd8\x4a\x17\xf9\xd3\x4d\xa5\x4f\x62\xfc\x98\xd4\x2e\x1d\x79\x58\xed\x63\xf8\xf9\xa6\xd9\x15\xf7\x5e\x3e\x42\xee\xc4\x4d\x02\x1a\xdd\x38\xc0\x8e\x68\xa5\x1c\xa1\x7b\xe1\x3e\xf9\x6b\xc4\x26\xc6\x73\xf3\x2c\xdf\xf8\x55\x35\xf7\x1a\xa1\xfd\xc8\x83\x89\x23\xae\xbd\xb9\x0f\x4c\x80\xfd\xd5\xac\x79\x71\x9f\x12\x53\x10\x86\x6c\xf2\xad\xe0\xaa\xee\xa6\x59\x59\xd6\xaf\x2c\x27\x9e\x0b\x85\xad\xa2\x5f\x4e\x84\x63\xa9\xbe\x64\x87\xa2\xfb\xbe\x9d\x81\xf3\xfd\xb6\xcb\xba\xe2\x30\xd1\x2f\xe2\x19\x0f\xb2\xea\x6f\xf2\x11\xc0\x26\x70\x29\xc9\x24\x7b\xbc\x96\x25\xbf\xd7\x07\x52\x7f\x59\x0f\xe2\xea\x06\x11\x9a\x7e\x73\xba\x7b\x50\xe0\x9d\x7c\x30\x79\xca\xbe\xb1\xaa\x6b\xdd\x63\x18\x30\x58\xb2\xaa\x38\x8b\x27\x7b\x87\xb7\x6e\x93\xd9\xba\x4d\x8a\xea\x58\x54\x45\xc7\x92\x5e\x0d\x32\x75\x47\xb4\xef\xd5\xa4\xad\xcb\x22\x4f\xe0\xb3\x93\xba\xd7\x9f\xd3\xd5\xd3\x86\x5f\xe9\x15\x9f\x79\xe2\x41\x52\x3b\xbb\xfa\x82\x9a\x16\xf9\x00\xe2\x4f\xd6\x45\x5e\x75\x19\x72\xb8\x0a\xc9\xce\xbb\xe1\x72\xe0\x3a\xfd\x39\x99\x26\x5f\xe6\xec\x9c\xfc\x29\x59\x3c\x3c\xec\xf4\x5d\x53\xa7\xc4\x79\x7c\x90\x58\x8a\xf2\x3e\xbf\xa1\x5a\x23\xff\x12\x49\x72\x1d\x1d\xf2\xf4\x42\x7b\x43\xee\xe0\x82\xce\x17\x39\x42\x9a\xec\xb2\xed\xff\xe3\xdc\x6b\xe5\xc5\x6d\x97\x35\x5a\x56\xfd\xc6\xb5\x75\x8b\x79\x66\x8e\xa8\xe1\x21\x6c\xea\x86\xa8\xbc\x01\x0a\x90\x90\xeb\x98\x92\xf8\xd4\x02\x0c\xdd\xa8\x36\x81\xb1\xe7\xb9\xdd\x8b\xa5\xfa\xe9\xd9\x9e\x80\x48\x7e\xaf\xee\xda\x9b\x1a\x04\x0a\xc2\x2c\x4c\x11\x21\x07\xa1\xad\x18\x0b\xab\x04\xb4\xd7\x74\x7e\x79\xf3\x72\x75\x5b\x50\xbe\x74\xe9\xc3\x72\x7d\x28\x0a\xca\xf2\x2c\x29\x30\x71\x6f\x3a\xf0\x44\x7a\x98\xa3\xbc\xf3\xaa\x1e\x0d\x5f\xc6\xd5\x41\xbd\x67\x1e\x55\x93\x38\x60\x55\x9f\x30\xf4\x36\x56\x06\xe9\x08\xc3\x67\xd1\x57\x43\x0d\x8b\x76\x78\x3a\x0d\xbf\x6c\x0e\x60\xc5\x53\x0a\xe8\xe8\x65\x55\x2e\xde\x56\xcd\x8a\x8a\x35\x3a\x1d\x45\x22\xde\xb6\xb5\xef\xc2\x47\xe6\x44\x31\xe9\xa9\x64\x1b\xcf\x9b\xf4\xa2\x66\x13\xfe\xbb\xc1\x96\x37\x79\x79\x2d\xe0\x3d\xeb\xe5\x42\xbf\x1a\x2c\xf5\x54\x7e\x51\x24\xb9\x7d\x13\xbf\xf2\x17\x84\x03\xf9\x62\x54\x62\x14\xc0\xd6\xc8\x2f\x62\x80\xce\xd7\x0b\x2d\x6c\x0c\x69\x95\x48\x04\xd6\x48\x24\x33\x32\xc0\x96\xab\x55\x04\x59\x37\x7d\x0a\xd6\x9e\x40\x46\xf1\xc7\xa8\x24\x4d\x2a\x79\x89\x94\xd2\x97\xb3\x04\xe7\x6f\x56\x46\xfc\xf1\xae\x5f\xe9\x8d\x4c\x6a\xa1\xdd\x95\xb2\xf8\x5a\x16\xe6\x03\xfa\x3c\x99\xc3\x3b\xe2\xe2\x38\x94\x07\x9f\x27\x2f\x3d\x85\xb5\xaf\xf0\xe2\x2b\x6b\x7c\x3c\xb9\x9f\xe5\x29\xbf\xba\x6c\xed\xa6\x30\xeb\x79\x9a\x0f\xa8\xa7\x85\xf1\xfb\xd2\xf8\x7d\x65\xfc\xbe\x36\x7e\xdf\xc0\x0c\xfc\xf6\x5b\xf8\x3b\x9e\x41\x43\xa7\x71\x98\x2f\xd6\x26\x5f\xf3\xe1\xb6\x21\x6b\x82\x9e\xbd\xa1\x90\x74\xea\x85\xbe\xef\x60\x8d\x16\xc0\x6d\x36\x53\x32\x68\xe2\x8f\xf3\x15\x44\x09\xd0\x9f\xcd\x57\x8b\x27\x80\xb1\x04\x4c\x10\x1e\x9b\xcd\x66\x03\x31\x42\x3c\x96\xcb\xe5\xd2\xc4\xa8\x4b\xb3\x57\xad\xfa\xee\x4c\xbb\xb5\x00\x8c\xe0\x33\xce\x0b\x44\x36\x58\x15\xeb\x41\x67\x14\xe1\xe9\x09\xe2\x80\xd7\x9d\x1d\xf8\x39\x3e\x92\x94\xcb\xc1\x65\x5e\x3b\xee\xb4\x99\xab\x46\x3c\x6b\x0e\x5b\xe3\x56\x16\xad\x7a\x6b\x3d\x67\x87\xe2\x9c\x95\xef\x66\x03\x99\xc5\x45\x7b\x30\xcb\x60\xf1\xb4\xfb\x7e\x61\xdb\x43\xd1\x1c\x4a\xb6\x33\x4d\x00\x60\xc8\xb1\x30\xc4\xf6\xdf\xae\x59\xc3\x06\xc0\x1c\x4e\x22\xa0\x33\x8e\xc5\xcb\xb5\x61\x76\x39\x9c\x63\x16\x58\x06\x16\x9b\x84\x5f\x79\x10\x9e\x21\x2b\x80\xa0\x24\xc5\xf9\x05\x4d\x5f\xe9\x00\x1e\x8b\x97\x43\x76\xe9\x27\x6a\xf0\x00\x7e\x97\x95\xc5\x01\x3c\x9c\x7e\xf3\x3d\x5e\xaf\x3a\xd9\x79\xba\x7e\xb6\x6f\x58\x96\x1f\x9a\xeb\x79\x2f\x92\x33\xa9\x47\x8d\xf8\xef\x55\x76\x66\x93\xd9\xa9\x78\x39\xf1\xeb\x35\x93\xd9\xa5\xa9\x5f\x1a\xd6\xb6\xf6\x63\xee\x83\x24\xed\x75\x3f\x31\xfe\x30\xdf\x98\x7d\x5c\xff\xfc\x0e\x8d\xeb\xcd\x5c\x80\x5a\xcb\xdb\xdc\x59\xf0\x9e\xa4\x56\x6f\xe7\xd4\xfa\x50\x90\x93\x19\x8c\x74\x03\xf4\x15\x4f\x84\x75\x42\x9f\xc9\xaf\x2e\xd7\x6e\x32\x13\x9e\x5e\x22\xfe\x99\xcc\x7a\x35\xc9\x1a\x96\xdd\x3e\x9c\x74\xc8\xcc\x6a\x87\xd4\xf3\x64\x59\x76\xeb\xc5\x2d\x17\x9e\x65\x39\xda\x3a\xfc\xbb\x6a\x23\xa3\x29\x7a\x4f\x02\xb0\x70\x48\x1e\xeb\xba\xc3\x48\x8a\xef\x16\xc9\x7e\x71\x9e\x26\x69\x80\xe4\xbe\xce\xbf\x27\x5d\x63\x8c\x0a\x8c\x01\x06\x75\xb2\x96\x4b\xb2\x22\x9a\xc3\xb0\x15\xe4\x6e\xfc\x18\x20\xf4\xce\x8f\x01\x44\x6d\xfd\x48\x95\x70\x74\x60\xd8\x05\x98\x6d\x16\x88\x06\x18\x29\x82\x20\x80\xd9\xff\x9c\xf8\x76\xcb\xf3\x69\x5d\xca\xec\xc0\x4e\x75\x99\xf7\x4b\x06\xc5\xce\x2d\x93\x2a\xc2\xb7\xc5\xd7\xab\x89\xf8\xff\xd9\xf2\x61\x20\x26\xf3\x70\xf1\x3f\x49\xaa\x14\x50\x88\xbc\x47\xd4\xb1\x92\x4e\xcf\xad\x57\x48\xb4\x3c\x40\xd4\x5c\xc4\xea\x0f\x7a\xbd\x2a\xf8\x82\x72\x75\xde\xa1\xb8\x9a\x04\xcc\x6f\x9a\x86\x16\xcf\x86\xd2\xb9\x99\xa2\xa3\x08\x77\x72\xd3\xb3\xd7\x68\x2e\xcc\xb0\xc1\x38\x90\xa5\x37\x44\xe1\x86\x90\x43\xc2\xa7\x56\x3e\x28\xb3\x85\xe7\x8b\xc5\x44\xfd\x6f\x68\x64\x80\x1d\xd6\xb6\x28\xf0\x51\x5c\xa3\x2a\xf6\xa1\x7a\x05\x74\x33\x04\x19\xc1\xab\x77\x6a\xfe\xdc\xb2\xac\x39\x9c\xcc\xde\x36\x3f\xdb\x1b\xdc\x72\xab\x53\x51\xe8\x67\xeb\xba\x2a\xbf\x9b\xe8\xfa\x9b\xbb\x7b\xae\x87\x03\x9f\xf7\xa1\x76\xcb\xdc\x49\xf6\x0e\xbe\x8d\x84\x8e\x2e\x37\xc7\x14\x2c\xda\xe2\x18\xd8\xc0\x73\x98\xa0\x85\xce\x50\x74\x59\xb9\x25\x31\x83\xd3\x49\xd6\xa4\x25\xe6\xf9\x14\x20\x59\x99\x76\x05\x49\x17\x61\xe3\xa1\xad\xe6\xa6\x8f\x81\x45\x6e\xab\x81\x04\x31\x8e\x24\x54\xab\xb9\x7c\x9c\x52\xb4\xd5\x0c\x6e\xa3\x52\xbd\x68\x71\xa5\x97\x68\xd2\x94\xe9\x1a\x90\x4b\x8e\x36\x1e\xda\x64\x6e\xda\x09\x58\xe4\x36\x19\x48\x2c\xe1\x48\x42\x35\x99\xcb\xc7\x29\x45\x9b\xcc\xe0\x36\x36\x45\x84\x96\x38\xcf\x1a\x4b\xcf\xc4\x45\x6f\xfb\xc6\xaa\x85\x82\xb6\x97\x73\x53\x1d\x94\xb8\xad\x65\x5e\x46\xb7\x25\xa0\xda\xca\xe1\x61\x17\xa2\x2d\x35\x70\x1a\x75\xa7\x5c\x4b\x2a\x2f\x82\x41\xa2\xfa\x72\x28\x72\x91\xcd\xc0\x2d\xaa\x63\x0d\x54\xa4\xb2\x1a\x5c\x00\xc0\x8e\xad\xec\x2e\x50\xd1\xcf\xb6\x48\x68\x47\x60\x37\x69\xed\x42\xb7\x3b\xac\x9b\xb2\x48\x55\xa9\x4e\xc1\xf8\x21\xe5\x68\xd7\x00\xae\x23\xef\xbc\x82\x36\x46\x5b\xc2\xb9\x0f\x02\x4a\xdc\x36\x30\x6f\x82\x80\x2e\x23\x0c\x44\x45\x28\xbc\x71\x11\xcd\xfe\x8a\x34\xaf\x2d\x3e\x56\x86\x36\x2c\xa8\x84\x53\x80\xda\xa1\x8a\x1c\x5a\x4e\x6d\xec\x42\xc2\x08\x55\x51\x43\xcb\xbe\xcf\xa2\x1b\x45\x86\x8b\x42\xaa\x3a\xf8\x1d\x09\x77\x75\x71\xd1\xce\xc1\x02\xe1\xed\x42\xb7\x8b\xac\x10\x78\x44\x26\xaa\xf9\x30\x7e\x48\x39\xda\x88\x80\xeb\xb8\x18\xf8\xc1\xc9\x11\xd1\x63\x96\x2f\xa2\x82\x61\x91\xe8\x37\x17\x17\x77\xb7\x90\xc0\x58\xbb\x10\x71\xb9\x60\x48\x2c\x22\x13\xe9\x76\x21\xfc\x90\x72\xdc\xf5\x32\xb9\x8e\x8c\x89\x35\xa6\xa5\xea\xc5\xf4\xbd\x67\x46\x6c\x1c\x12\x12\xe3\x60\x12\x73\xa3\x13\x26\x67\x95\x61\xf3\xa3\x19\x20\xe7\x8a\x43\xcf\x91\x0e\x2f\xb7\x98\x98\x27\x07\x8e\xe3\x02\xe4\x86\x01\x74\xce\xca\xd2\xd2\xee\xe8\xe0\x19\x4d\x45\xa5\x8c\x36\xc9\xd0\xbb\x2a\x83\x81\x15\x09\xa8\x81\x7d\xf2\x6d\xb3\xcc\xcc\xf0\x14\x6b\xfd\xed\x44\xad\x88\x08\x0d\x67\x37\x65\xa6\x9f\x26\xb1\x4d\x30\xf2\x2e\x9d\x79\x46\x37\x3b\x9c\xd8\xe1\xb7\x7d\xfd\x36\x99\xf5\x8d\x52\xab\x6d\x40\x74\x6f\x16\x39\x32\x35\xda\x5c\x06\x71\x7c\x46\x86\x5b\x98\x4c\x3c\xb5\xb6\x97\xd2\xf7\x61\x63\x0a\xee\x2d\xee\xcc\xe3\xda\xf4\xe7\x5d\xc3\x78\x73\xab\x4d\xcf\x01\x8f\xef\x58\xff\xa5\xa9\x5f\xdb\x5f\x1f\x38\x8d\x93\x7e\x3d\xf8\xf2\xc6\xa9\xa8\xa3\xa4\x05\x3f\xcc\xcd\x59\xc9\xfa\xe5\xe3\xb9\xce\xb3\x72\x7a\x28\xeb\x96\xdd\x0c\xa8\x1e\xc8\xdc\xd7\x18\x56\xa6\x3d\x07\x95\x5d\xfc\x5a\xb5\xac\x1b\x0a\xf9\xc9\xf8\xb1\x78\x63\x39\x57\x8a\x9b\x14\x56\xac\x5b\xad\x6e\x51\xa1\x57\x32\xde\xc5\x3a\xed\x5a\xac\xdf\xc5\x76\xf5\xa1\xcb\xc0\xc6\x35\xd8\xd2\xc5\xe2\x61\x20\x9d\x35\x96\x0d\x7e\x4c\xda\xfb\x41\xee\x44\xee\x20\x72\xe9\xc5\x1f\x56\x1d\x06\x58\x15\x31\xc0\x61\x61\xc8\xad\xde\x5c\x95\xa0\xe6\x5e\x11\x07\x37\xa3\xd3\x40\xa4\x90\x1b\xab\xf6\x2e\x30\xbe\xca\x16\x05\xe9\xd4\xf9\x69\x8c\x6c\x26\x4b\xa5\xb0\x1d\x73\x9d\x1c\xbf\xfb\xc2\x8d\xc2\xb5\xec\x8a\x4b\xc9\x1e\x6e\x20\x5d\x3f\x0d\xb7\x05\x41\x94\xe6\x76\x3e\xbc\xfa\x2a\xf5\xdd\x08\x91\xd9\xa6\x43\xdc\x56\x42\x04\x6e\xf1\x73\x0e\x24\x32\xca\x0d\xc7\xda\xf1\x31\x78\xac\x9b\xf3\xb6\xa9\xbb\xac\x63\x5f\xa6\xab\x75\xce\x5e\x1e\x86\x82\x69\xdd\x14\x2f\xc5\x90\xac\x9f\x37\x8c\x79\x08\xd9\x0b\x25\xd3\xc1\xef\x9a\xe1\xf8\x95\x9d\x79\x5c\xd8\x3a\xfd\x79\x67\x84\x78\xf4\xb2\x37\x75\x39\x33\x22\xe4\x44\x53\x28\x5d\x75\x4b\x6e\x46\x9c\x5a\x6c\x1c\xdd\xbb\xa5\xf9\xa1\x63\x13\x63\x3e\xb0\x2d\x11\x7c\x80\x81\x8e\x11\xdb\x7d\x78\x8b\xdc\x7d\x9b\xc1\x1b\x35\x2d\x4f\x4b\x2c\xc3\x00\x15\x02\x1e\x9c\x1a\x06\x0a\x34\xcf\x98\xed\x76\x1b\x71\xfc\x8e\x3a\xa4\x70\x2f\xe7\x91\xdb\xe4\x00\x79\x66\x5e\x05\x80\x64\xe9\xd7\x0a\x10\x1a\xca\x79\x71\x0a\xb4\xc7\x03\x89\xa3\xf0\xd2\xcf\xd1\x7d\x13\xbc\x8e\x1c\x5e\xd5\x00\xfa\xa3\xc3\x77\x91\xbc\x6d\x44\x4e\x44\x7b\x2b\x9e\xe0\x3b\x72\xb3\x9d\xa6\x72\xd7\x2e\x3a\x45\xee\x53\x64\x1a\xbf\x0d\xee\x0c\xbc\x76\xca\xde\x2e\x59\x05\x9f\x85\xa3\x39\x62\x0a\xaa\x76\x13\x21\x6d\xee\xe1\xa8\x19\xe7\xd7\x87\x1b\xb4\x3f\x0b\x73\xca\x53\x6c\x34\x34\xf0\x58\xf4\x31\xb2\x6d\x37\x06\xf8\xa4\x16\x07\xf4\xe0\xc0\x79\x6e\xcc\x80\x5c\xec\x2d\x76\x75\x40\x4f\xf1\xc3\xf0\xe1\x7b\xd7\xd0\x74\x83\xed\x79\x1c\xd2\x1d\x91\x18\x84\x35\x34\x6d\x90\xad\x9f\xc2\x7d\x1b\xea\x03\x2d\xbe\xbf\x8c\xd7\x4c\xed\xa2\xe3\xc0\x78\xe5\x6c\x08\xa4\x72\x26\x08\x52\x39\x50\x3c\x7e\xdf\xdb\x98\xb3\x7b\x7d\x21\xfa\x0c\xa8\xa7\x0d\x8c\xd7\xcc\x86\x40\x6a\x66\x82\x20\x35\x03\xc5\x77\x6d\x4f\x0f\xb4\xf2\xac\x21\x7a\x8d\x6f\x4a\xa3\x80\x78\xbd\x2c\x00\xa4\x5a\x06\x04\x52\x2b\xb3\x74\xfc\x56\xf2\x40\x47\x6e\x78\x12\x95\x92\xbb\xc7\x03\x78\x51\x1d\x6b\x1d\x18\x62\xb6\x71\x45\xb4\x8b\xda\x29\xa6\x38\xe2\xad\xe3\xc2\x20\x0d\x04\x81\x90\x36\xb2\x00\xee\xd9\xd3\x45\x6b\x8e\xcb\x6c\x01\x20\x02\x1b\x10\x88\xb4\x66\xa9\xdc\x64\x41\x1b\x98\x1a\x27\x55\x40\x9f\x0c\x08\x74\x94\x54\x63\xf4\x09\xf7\x34\x8c\xcd\x43\x42\xa1\xe4\x96\x29\x05\x8e\xd7\xcd\x85\x41\xaa\x07\x81\x90\x1a\x5a\x00\x77\x6c\x6e\x1a\x53\x81\xd8\xd9\x23\xcc\x9c\xdc\xcf\xa4\xc0\x89\xf9\xc9\x81\xc1\x66\x28\x00\x84\xcd\x51\x10\xe0\x9e\x9d\x47\xd3\xc6\x54\x2f\xac\xc1\x2b\xa9\x76\x1b\x09\x68\xca\xe8\x59\x20\xa8\xd9\x33\x60\x50\xc3\x67\x96\xdf\xb1\x37\x68\x68\x44\xf4\x4e\xe0\x80\x43\x6f\xfb\x19\x63\x89\xd8\xe4\x33\x2a\x21\xdd\x38\xdc\x11\x82\x6e\xb4\xb5\x2b\x88\x7c\x54\x3d\x64\x6e\x06\x1a\xd2\xc0\x45\xf4\x5f\xf3\x62\x59\xc4\x6d\x32\x63\xef\x20\x45\xb6\x25\xe4\x0d\xa9\x8d\xde\x46\x50\xbf\xea\xed\x0a\xe1\x25\x1f\x8b\x92\x99\x51\x9b\x37\x64\x83\x52\x6d\x39\x9c\xb2\x76\xca\x1f\xfd\x53\xbf\x88\xca\xa9\x67\x04\x6d\xb0\xd6\x2c\x9e\xe9\x6b\x26\x7a\x07\xd2\x69\x69\xad\x5a\xb2\xc5\x7d\xea\x64\xa0\x08\xcd\x72\x70\x30\xfd\x1a\x90\xb8\xaa\x21\x38\x42\xe1\xf8\x13\xa3\xce\x23\x8e\xe6\xee\x5f\xdb\x35\xac\x3b\x9c\xe0\x75\x38\xef\xfd\x37\x23\x48\x56\xec\x85\xfa\xde\x30\x75\x5f\x2b\x15\x42\x0d\xee\xb4\xde\xae\x1c\x7b\x21\xdb\xf2\x96\x01\x55\x63\x5d\x9f\x58\xfb\xa1\x33\xf8\x5e\x9b\x9f\xff\x73\xff\x73\xbf\x08\xd2\xba\xd1\x22\x70\x00\x53\x84\x88\x5d\x71\x6e\xde\xc8\x35\x46\x50\x26\x61\x50\x69\x91\xec\x72\xf2\xa2\xfd\xe8\x66\x11\x2b\x0c\x1f\xe1\xd0\xdb\x47\xe6\xd2\x0f\x50\x0d\xf4\xb7\xf1\x88\x94\x9f\xff\xaa\xff\xb9\x93\xbf\xa7\xb3\x8d\x60\xa2\x0f\x75\x36\x58\x73\xf9\xa5\xa1\xbb\xd9\x8c\x79\xf2\xb7\x46\x9a\x8e\x6b\x0a\xb1\xd0\xf2\x6a\x4e\xe0\x29\x00\x73\x2d\x05\xa8\x06\x3a\xd8\x78\x2a\xc7\xcb\x9f\x31\x76\x27\x73\x4f\xef\x1a\x71\x4f\x1f\x1b\xca\xd6\xba\xd3\x2f\x10\xdd\xc1\x66\x84\x96\xbf\x35\xc4\xc3\x9a\xa3\x1a\x84\x2f\x3b\x7d\x44\xbd\xaf\x59\x58\xfb\x00\x26\xd1\x40\x0f\x0f\x6f\x82\x78\xb9\xcf\xd9\x22\x5f\x1e\xee\x16\xc0\xd3\xcb\x43\xcc\xd6\x87\x3a\x19\xac\xc3\x43\xe2\xd0\x7d\x6c\x84\x96\xf9\xdb\x83\xbf\x54\x34\xba\x3d\xd4\xc2\xd9\xdb\xd1\x81\x9c\xfd\x98\x85\x70\x5f\x4d\xc0\x2a\x07\x9e\x42\x08\x28\x5b\x76\x7c\x1c\x39\x61\xb8\xd1\x61\x3e\x19\x3e\xa1\xc7\xe1\x96\x02\x2a\x93\x15\x55\x85\x09\x34\x84\x50\xe1\x63\xbe\x0a\x29\xf0\x10\x19\x05\xaa\x43\x19\x23\x18\xa9\x7f\x6f\x0b\xd3\x1a\x0c\x83\xf0\xfc\xbd\x3c\xcf\xd6\x8f\x61\x7f\xc3\x9a\x8b\x2a\xbf\x9d\x0a\x65\x16\xa6\x88\x06\x67\xa2\x2a\xca\xd3\x78\x5a\xef\xef\xe5\xee\xb3\xfc\x55\xe4\xcc\xbe\x5e\x1d\xf7\xe3\xb8\xf3\xdd\xa9\xcf\x6e\x50\x2b\x09\x36\xa9\xf7\x3f\xa6\x41\x61\x9c\x23\xc9\xfc\x07\x35\xa8\xda\x8e\xf2\x6a\x7e\x20\xc3\xab\x87\x6e\xa0\x59\x41\x0a\x5d\xbf\x0c\xfb\x6c\xb3\xdc\xdc\x2d\x83\xc7\x22\x81\x30\xc3\x0f\xd9\x58\xb8\x51\x17\x12\x89\xee\x6f\x18\x14\xe9\x6f\x96\xe7\xe7\xc3\x72\xa4\x51\x52\x9b\x73\x5e\x17\x39\x90\x9b\xd2\x43\x37\xb4\xea\x35\xb3\x7f\x86\x64\x78\x9a\x3f\xde\x2d\x83\x6f\xd9\x6b\x46\x44\x7e\x70\xe1\x0b\xb6\x2d\x43\x32\x79\x96\xbd\x20\x80\x33\xb0\x1f\xf0\x34\x1f\xbb\x3e\x95\xdb\x95\x3e\xb2\xa1\x04\x7b\x34\xd9\xa0\xd3\x3c\xa4\x2e\xf4\x4a\xb0\x67\xcb\x7c\x39\xd2\x97\x73\xc2\x3a\x3d\x12\x7c\x42\x77\x83\x4d\xdc\x80\x40\x3e\xbf\xd9\x08\x36\xf5\x37\xc9\x6a\x99\x2d\x46\x4e\x28\xd4\x5d\x5c\x55\x4e\xef\x1d\x43\x08\x29\x58\x71\xa8\xab\x64\x76\xcc\xcc\x9c\x15\x3c\xf5\x91\x9e\xef\x89\x7d\x66\x50\xee\x21\xf6\xa4\x89\x9d\xb2\x96\x07\x0a\xba\x7d\x34\x32\x53\x13\x4e\xaf\xff\xf5\xce\xe4\x52\x80\x5c\x5f\x29\x76\xbe\x74\xdf\x5d\x39\x87\xed\xfb\x00\x0e\x97\x05\x86\x58\xa8\xf6\x0a\xe6\x1a\x52\x80\xa1\x44\x43\x0a\x6e\x5f\xbf\xe9\x71\x21\xb6\xa5\x39\x4c\x5e\x34\xec\xc0\x37\xa7\x0f\x75\x79\x3d\x57\x38\x42\x5f\x39\x14\x5c\x6d\xa4\xc3\xd4\x06\xec\x9c\x2c\xcd\xce\x37\x49\x99\xed\xaf\x6e\xc3\xcf\x2f\x6f\x09\xd0\x26\x13\xa1\xd7\x96\xdb\x10\x0d\x3a\xec\xd8\x8b\x60\x11\x0a\xc5\xab\xad\x1c\x58\x0f\x13\x1a\x6b\xbe\x42\xb1\x82\x43\xe3\x09\x45\x0b\x8c\x81\xe5\xda\xc5\xa2\x07\xc3\xa0\x64\x89\xbc\xfb\x1f\xc0\x35\x1b\x5e\xe9\xb4\xc8\x43\x90\x2c\x86\xb3\x15\xb2\x4b\x1a\x7b\x47\xcd\xa2\xa4\x05\xc1\x51\x10\xee\x52\x6c\x97\xfb\x9c\x17\x48\x09\x76\xe2\x8c\x68\x3a\x1f\xe8\x0e\x87\x4d\xa6\x3a\x9b\x27\x4e\x14\x24\x97\x82\x2b\xf2\x4b\x53\xbf\x6e\xe7\x56\x66\xab\x77\x93\x5e\xf0\x68\xc2\x0a\x72\xf4\x9d\x54\xa8\x56\x33\x23\x85\xb5\x40\xe6\xc7\x4b\xf6\x52\x54\x3c\x98\x74\xca\xca\xb2\xb8\xb4\x45\x4b\x14\xc3\xe7\xba\x40\x51\xc5\xde\x3a\xa2\xe8\xd2\xb0\x6f\x45\x7d\x6d\xbd\x01\x78\x66\x33\x44\xee\x64\x5a\x61\x53\x04\xbe\xa9\x04\x12\x23\x5f\xf7\x3f\x00\x23\x7e\xbb\x10\xe3\xca\xe7\xd8\xaa\xee\x8a\x63\x71\xe0\x75\xf6\x64\xe2\xa4\x98\x22\x72\x1e\x8e\xfd\x8f\x44\x11\x91\xe3\x2a\xb0\x39\xd5\x99\x28\xd3\x21\x9a\x15\x0b\x6b\xe6\xe7\x8a\x32\x56\x39\x9d\x2b\xe3\x65\xc5\xc7\xfb\xc2\x82\x61\xa0\xa3\x75\x19\x82\xeb\xe4\xe8\xc0\xe0\xbb\xf3\xa7\x20\x81\xc1\x9e\xc3\xeb\xbe\x89\x40\x2c\xb2\xf9\xa1\x19\xce\x62\x8d\x3c\x38\x55\xfd\xda\x64\x17\xf7\xa8\x54\x04\xae\xc3\xf3\xd2\x87\x44\x25\x07\x71\x4f\x4c\x7b\x76\xc1\x62\x10\x42\x08\x13\x8b\x2c\x8c\xc4\x68\xfe\x23\x5b\x8a\x45\x64\x39\x2e\x43\x03\x62\xf7\x95\xc2\xcc\x8c\x98\x06\xf3\x9b\x0e\x62\x50\x1f\xb7\x36\x94\x8a\xe7\xd1\x0a\xe7\x90\x52\x1f\x21\xad\xfe\xeb\xd6\x81\xb3\x03\x85\x07\x09\xd5\xcd\x87\x55\xd6\xff\xbc\xd3\x06\x00\x9c\xf8\x8b\x3c\x4a\x5c\xef\xdd\x39\x41\xfd\x2f\xb5\x0e\xf3\x8d\xbb\x11\x1b\x98\x4a\xaa\xef\x40\xf1\xb7\xce\x8c\xa4\xcc\xea\xbb\xe1\x5d\x84\x72\xb2\x1a\xd1\x02\xb8\x3b\xb6\xb3\x92\xa8\x9a\x61\x05\xef\xb3\x13\x2b\x2f\x93\x99\x98\x55\x80\xe4\xef\x01\xc7\x43\xa0\x00\x2b\x67\x8e\xa9\x86\x9d\x41\xc6\xb9\xc7\x34\x95\x38\xa1\xdc\x57\xc2\x75\xe2\xa0\xbe\xc5\x82\x06\xa0\x57\x0b\x1a\x84\x5a\x00\xf4\x95\x77\x48\xef\x60\xde\x41\x0d\xa8\xcf\x7e\x41\x8a\x78\x55\x22\xf2\x3c\x58\x47\xba\xaa\x50\x64\x34\xb0\x0c\xbc\x2a\xe4\x37\xf7\xcd\x33\x24\x55\xa0\x6e\xaa\x83\x83\x84\xa1\x58\x5c\x40\x1f\x58\x54\x9a\x8a\x8a\x25\x54\x65\xea\x5a\x2e\xd8\x2d\x33\x2a\x25\x6f\x9b\x82\x9d\x15\x53\x3e\x7e\x89\x12\x2c\xc2\x7b\xe5\x60\x65\x1e\xec\xca\x47\xb5\x6c\x63\x65\x6e\xe4\x35\xbd\x45\x87\x51\xd8\x98\x89\x32\x51\x81\x5c\xc1\x53\xe9\x1f\x52\xd8\x46\xae\x36\x95\x64\x75\x12\x0b\x2e\x6d\x65\x24\x34\xb4\x9c\xf4\xe2\xce\xf0\x34\xed\xe5\xdd\xc2\x5f\x17\x23\x15\x56\x44\x55\x4c\xe8\x60\x4d\x4c\x60\x5f\x45\xc0\xe2\xd6\xaa\x89\x5d\xe6\xa9\x4a\x84\xfc\x61\xa1\x09\x49\xcd\xa5\x72\x80\x3d\x9c\x75\x22\x80\x8d\xd9\x28\x00\xbd\x8d\xa6\x3b\xcc\x85\xfe\x96\x88\x14\xd6\xcd\x72\x15\x02\x8e\x11\x15\xe4\xc6\x8a\xed\x91\x48\x89\x1d\x9c\x18\xc9\x01\x52\x4c\x0d\x20\x82\x93\x43\x7a\x84\xae\xa8\x4b\x99\x63\x34\x26\x1a\x67\x3b\x92\x87\x99\x31\x7a\x8c\x0e\x8d\xc1\x88\xaf\x83\xa9\x4f\xd1\xe0\xb1\x35\x20\x74\xeb\x1e\xcc\xf8\x1a\x61\x7a\x36\x1a\x8d\xc8\xea\x4d\xe2\xf3\x2d\x3a\x7e\xf7\x89\xe5\xe6\x4e\x81\x8b\x62\xfc\x1a\xb3\x5b\x47\x23\x87\x77\xf0\x68\x5c\x63\x83\x43\x56\x00\x6c\x6f\x88\x69\xfe\xd4\x14\xd5\x6f\x83\x55\x2e\xda\xbe\xf8\x7a\x61\xf9\x58\x1f\x61\xc0\xfc\x05\xb2\xa3\x59\xfc\x12\x74\x26\xa4\x1f\x63\x25\xd6\x87\x6e\x0d\x42\x8f\xea\x28\x50\xe7\xb9\x4b\xc0\xf8\x35\xb6\xdb\x70\xe4\xb8\x6e\xc3\x71\xf9\x1d\x35\x9e\x04\x01\x3e\xf7\x10\x89\xf5\x0b\xe2\x3c\x4c\xc6\xa2\x8e\xf2\x2b\x03\x54\x7d\x0f\x45\x8c\xa2\x13\x52\x12\x49\x47\x6c\xda\x24\x72\x81\x34\xac\x2e\x8a\xea\xc4\x9a\xa2\xf3\xa7\x8e\x7f\xdc\x88\x9c\xec\x06\x25\xf4\xe9\x0c\xc5\x8b\xa7\x43\x15\xbf\xcb\x7f\x1c\xa9\xbc\x49\xe0\x1f\x37\xcf\x97\xb7\x87\xc9\xa5\x29\xaa\xee\x36\xb4\xc3\xa9\x6e\x8a\xdf\xeb\xaa\xcb\x4a\x30\x0c\x41\x0d\x85\x7a\xec\xb3\xb6\x68\xb7\xe9\x8e\x1c\xd9\x70\xe8\x88\x4c\xef\xe6\x32\x98\x7f\x07\x84\xe9\x55\x1f\xd8\xf7\x11\x5b\x3e\x0e\x66\x55\x37\xe7\xac\xbc\x45\x40\x52\x0b\xc7\x18\x2e\xf8\x8a\xd2\x83\xd9\x77\xd4\xcd\x7d\x4c\xc5\x6d\xbe\x35\x6a\x24\xcc\x8e\xa6\xf4\xae\x07\xf9\x45\x82\x90\x34\x7e\x31\x56\x6e\xbc\xb9\xb2\xa6\xa9\x5f\x1f\x90\xe9\xc4\x01\xf7\xbc\xcc\xf2\x28\x95\xb2\x38\x67\x2f\x6c\x22\xfe\x49\x8a\xf3\x8b\x91\xfe\xd9\xda\x5c\x30\x77\x41\x91\x84\xf9\x0a\x0d\x29\x12\x69\xa0\xe9\x07\x04\xb8\xe1\x87\x1b\x11\xee\x7e\x20\x9a\x32\xd9\xdc\xf9\x12\xd7\x18\x6e\x70\x23\x08\xee\x60\x46\x26\x8c\x30\x76\x56\x25\x22\x92\xde\xc1\x60\x3b\x38\x3f\x5f\xc9\x9b\x16\xc6\xbe\xa1\x00\xfd\x5f\x02\xa0\xa6\xc7\x41\xc3\x9a\x9b\x81\x91\xb0\x2e\x61\x98\x56\x84\xac\xa2\x1e\xe5\xa2\x96\x44\x6a\x66\x02\x51\x0c\x5d\x07\x13\x24\x6c\x26\x50\xf9\xc8\x45\x30\x97\x28\x22\xb5\xa1\xdb\x63\x8b\x6d\x75\x17\x07\x74\x8f\xae\x66\x5c\x0f\x45\x80\x9b\x9d\x14\x0f\x8e\x92\x8f\x68\x74\xa7\x32\xa2\xe9\xe3\x6b\x13\x82\xb7\xab\x13\x09\x8f\x33\x88\xd1\x05\xa7\x46\x5c\x23\xe2\x2b\x14\x00\xb7\xeb\x13\x07\x8e\x92\x8f\xd0\x4f\x5d\x99\xf0\x95\xac\x1f\x6e\xcb\x4c\x93\x9e\xa8\x9c\xe9\x13\xeb\x73\x7b\xdd\x77\x45\x57\x32\xfb\x3b\xf6\xb1\xed\x9a\x5a\xef\x4b\x1e\xae\x4d\xc3\xaa\xee\x1f\xfa\x3f\xfc\xed\xc0\x5b\x91\x1d\x3b\x67\x80\xfe\xff\xfe\x92\x9f\xe7\xf5\x37\xea\x86\x1f\x56\xbb\x59\xf0\x62\x1d\x8e\x13\xba\x59\x87\x63\xf9\xaf\xd6\x71\x57\x00\xbb\x65\xa8\x7d\x84\x9b\x19\xa6\x01\xf2\xb4\xf5\x10\x3d\x87\xf9\x66\xff\xfd\x59\xb8\x13\xc3\xb7\xfd\xf7\xb9\xf5\x69\xe1\x7e\x5a\xee\xbf\x2f\xac\x4f\xab\xfd\xf7\xa5\xf5\x49\xbc\x19\xc2\x65\xd1\x0b\x3e\x95\x47\x8d\xb8\x69\x99\xca\xb1\xa0\xba\x31\x4d\x7f\x26\x64\xdf\x7f\x9f\x3b\xac\x80\x77\x6a\x21\xf4\xf2\x81\x72\xfe\x06\x06\xa8\x11\x28\xde\x6c\xf8\x6b\x36\x4e\x7b\x01\xa0\xf5\x66\xb6\x00\x64\xfa\xb6\x82\x10\x56\x8b\xbf\xcd\x37\x3a\xb0\x65\x33\x3c\xec\x24\xf2\x8a\x6b\x2a\xab\xb7\xc5\x4a\xa7\xf0\x1a\xde\x7f\x5a\xac\x00\xd8\x72\xf1\xb6\x5c\x28\xb0\xe5\xf0\x4c\xd5\x72\x01\xc0\x56\x4f\x6f\xab\x27\x05\xb6\x7a\xd2\x60\xab\x27\x00\xb6\x59\xbd\x6d\x34\xd3\xcd\xc0\x74\x03\x99\x3e\x6f\xde\x9e\x75\x15\x9e\x37\xc6\x63\x63\x00\x6c\xbe\x78\x7a\x9b\x2f\x34\xdb\xf9\x62\xe0\x3b\x17\xa1\x32\xf0\xbc\xde\x39\x47\x46\x54\x1b\x18\x31\x91\x39\x4f\x6e\xcb\x3d\xa0\xc6\x0c\xc0\x1f\xea\xdc\xb6\x83\x97\x86\x19\x81\x02\xf2\xe0\xc9\x86\xe0\x88\x26\x18\x8f\xba\x31\xa1\x7e\x51\x17\x51\xc9\xeb\xc3\xda\xb4\x70\xc3\x22\xa0\x55\xb6\x31\xf9\xd7\x9e\x1d\xeb\x86\xf5\x5e\xf8\x0b\xaf\x58\xbf\x48\x78\xe0\xc7\x44\x00\x9a\x2a\x16\xe8\xc2\x32\xaf\xd3\x9f\x75\xc6\xb3\xe1\x9e\x32\xff\xad\xcc\x3a\xf6\x9f\xbf\x4c\xd7\xe9\xcf\x0f\x89\xfe\xf0\x2f\xf2\x83\x4c\xbc\x26\xf3\xae\x0d\xc9\xce\x60\x6d\x87\xe3\x3a\xf4\xc2\xac\x0b\x2c\x33\xb5\x13\xb7\x2d\x5d\x78\x99\xa6\x9c\x0c\xe0\xb0\xe1\x45\x86\x6e\xec\x22\x98\x0b\xab\x93\x54\x13\xd7\x89\x5c\x0c\x71\x1a\xe8\xca\x58\x61\x3c\xd5\x01\xa1\x0d\xae\xf3\xf7\x12\x11\xf6\x48\x0b\xab\x4c\xb5\x44\x80\x36\xd6\x0c\xde\xf7\xca\xdf\x87\x15\xe3\x98\x3c\x8a\xea\x1d\x58\xe3\x77\x67\xf2\x56\x43\xdc\x58\xa8\x6b\x6f\x46\x18\x61\xbd\xea\xd4\xa9\xb3\xd4\x97\xe9\x3e\xc3\x64\x16\xde\x82\x17\xf1\x5b\x56\x5e\x31\x1d\x54\x6a\x65\xa0\xf2\x04\x5b\x7e\x86\x18\x56\x3b\x3d\x16\x65\x19\xba\x27\x2c\x83\xc8\x14\xa2\x1e\x1e\x23\x44\xe6\xc3\x06\x23\x10\x21\x38\x8d\x4b\x8a\xef\xa0\x88\x2b\xb9\xf7\x37\xb1\x49\xe3\x8e\xb6\x06\xe8\x81\x46\x87\x58\xe2\xaa\xe9\x88\x86\x96\x26\x04\xa3\x11\xd3\xd6\x3e\x74\xba\xb9\x11\x2c\x7e\x7f\x32\x5e\xee\x85\x39\x7e\x0d\xfc\x08\x99\x49\x54\x52\x5e\x07\x43\x5d\x95\x1b\x21\xaf\x34\xa6\x38\x95\x18\xa9\xfd\x04\x68\xd9\x11\x3c\x7e\x2b\x2d\x5e\x76\x65\xc3\x11\x12\x11\x82\xfb\xb0\x49\xa9\x31\x24\x7e\xf5\xeb\x63\x52\x4b\x12\x77\x4a\xad\xb0\x47\x49\xad\x2e\x30\x8d\x50\x15\x39\x01\xe2\x54\x62\x54\xc5\x4f\x80\x56\x15\x04\x4f\xdd\xc5\x19\x61\x51\xe4\x6c\x8c\x53\x89\xb1\x29\x7e\x02\xb4\x55\x41\xf0\xe4\xed\x92\x78\xe9\x6d\xd7\x00\x10\x89\x10\xde\x8f\x4f\xca\x8e\xa1\xc9\x43\x83\xe1\xdd\x54\xb1\x34\x06\xe3\x88\x9f\x0d\x68\x08\xb1\x0e\x16\xbb\xd6\xc4\x24\x37\xbc\x5f\xa8\x5f\xf8\xc3\x92\x28\x2b\xb0\x99\xf1\x3a\x93\x84\x0f\x78\xbb\x76\x76\xd2\x21\x29\xae\x9a\xae\x4c\xda\xea\x19\x23\x83\xb6\xdf\x39\xde\x61\x99\x19\x77\x58\x0d\x67\xc6\x93\x3f\x06\x79\xbf\x2f\x8d\xe7\x56\x35\xa7\x01\x93\xbc\x7c\x1b\xc7\xa0\x4e\x7b\xde\x3b\x27\x39\xa1\x7d\xd5\xdf\xa4\x3c\xbc\x27\x63\x10\x0f\xb9\xea\x36\x0b\xf1\x91\x6a\x1b\xf9\xaa\x0c\x68\xad\xca\xaa\x0e\x80\x39\x05\xdd\x7c\x3c\x3f\x2e\x25\xc0\xf0\xae\x87\x41\x3f\xb4\x2e\xb0\xeb\x28\x3e\x52\x2c\x86\x27\x2f\x4c\xe5\x0d\x2c\x24\x6c\x1d\x10\x1f\x29\x16\xfa\x31\x08\xa0\x05\xde\x85\xc7\x0e\xcb\xdb\x46\x32\x10\xc7\x66\x90\x81\xf8\x76\x73\xe3\xc4\xd5\x1a\xe3\x67\xab\xa9\xf9\x9e\x2f\xcb\xad\xb6\x96\x5f\x69\x85\x22\xbb\x4e\x62\x26\xd9\x04\xff\x2e\xf6\x53\x71\x76\x06\xd2\x09\x41\x42\xf7\x2d\x62\x9f\x23\x95\x70\xcd\xdd\xd5\x6b\x08\x49\x9b\x91\x92\x42\x78\xc3\xde\x5a\x05\x27\x37\x89\xee\xce\xd7\x00\xea\x7d\xd5\x88\x77\x55\x35\x92\x7e\x41\xf5\x8e\x97\x53\xfd\x2f\xa6\xde\xf3\x52\x2a\xc7\xe1\x86\x9e\x97\x9b\xad\x03\xbf\x5a\x02\xce\x75\x8d\x20\x18\x2e\x94\x0f\x06\x17\x0d\xd2\x1f\x5e\xf7\x30\x57\xed\xba\x98\x47\x52\xc1\xca\xab\x63\x6e\xd5\xb7\x0f\x2a\x1f\x34\x62\x66\xfa\x1f\x8c\x1a\xc7\xef\x9a\xe2\xd2\x0b\x7d\x07\x61\x73\x26\x19\xec\x04\x6c\x15\xf5\xed\x34\x64\x84\xe6\x99\x19\xc5\x4e\x5c\x37\x42\x8c\xaa\x3b\x89\x26\xfd\xc2\xbe\xb1\xea\xc1\x5b\xd3\x97\x36\x78\xbd\x00\xc6\x00\x79\xe3\xb0\x7a\x7a\x49\xff\x5f\x34\x62\x65\x28\x0e\x05\x13\x0c\xe0\xbe\xd0\x1d\x03\x2a\xf4\xa4\x3e\x87\xe4\xc7\x2e\x48\x38\x81\x3a\x90\xc2\x22\x0d\xd0\xef\x44\xe8\x41\x2f\x09\x08\xda\x33\x1a\x62\x78\x85\x05\x01\x42\x1e\x0f\xbf\xef\x0a\x30\x4d\xdc\x94\xfe\xde\xfb\xca\x9c\x7a\xcc\xe5\x5f\x1b\x10\x69\x09\x71\xad\x02\xbc\x92\xaf\x6e\x5a\x28\xec\x50\x04\x1b\x80\xa3\xda\x11\xbe\x58\xe2\xd2\x8f\x51\x47\x51\xf5\x61\x33\x1b\x1b\x31\xa4\xe3\x0a\x1d\x62\xec\x52\x1c\x71\x67\x07\xdc\xf2\x12\x0f\x91\xc3\x4b\x57\xe2\x1b\x76\x27\x0d\x48\x9b\xa8\x3d\x7f\xab\xad\xed\x67\xee\xa7\x2a\x5a\xc9\xd9\xb8\xf7\xad\x2a\x9c\x35\x84\x85\x1b\x58\x35\xc0\x99\xde\xc2\x0d\x6d\xaf\xbb\x27\x0c\xb4\x97\x1f\x42\x0d\x6f\xb7\x3b\x28\xca\x09\x77\xa4\xf6\x79\xe2\xde\x0a\x07\x9d\x6c\x2f\x76\xd0\x7f\xf6\x62\x87\x7c\x63\x2f\xb2\x1b\x47\xd7\xa0\x9a\xe4\xc6\xcc\xcd\xd7\x2e\xa4\x38\xc3\x37\xc7\x31\x39\x40\xb9\x32\xab\x97\x74\xa0\x81\x99\x3f\x21\xea\x2c\x49\x0f\x94\x42\x26\x43\x50\x89\x19\x29\x88\xd4\xee\xdc\x45\xcb\x4b\x0f\x3f\x64\xf8\xce\x2f\x6f\xc6\xf9\x85\x1b\xdb\x26\x5d\x47\x0f\xb9\xc8\x53\x3a\x47\x1d\x4c\xef\xd7\x8a\x67\xf0\xbc\x94\x04\x1f\x44\x4a\x8c\x79\xc2\xc7\x5c\xed\x9f\xe8\xe3\xd8\xb5\xf0\xf5\x3c\x15\x52\x38\xeb\xe1\x30\x5e\xb8\x8f\x38\x8e\x7a\xa1\x8f\x28\xa6\xfc\x39\x71\xbf\xdb\x23\x0a\xbf\x0c\xe0\x39\x2c\x72\x10\x39\x54\xbf\x24\x42\xcf\xad\xde\x8d\x98\x19\xfe\xcf\xed\xb5\x6e\xf2\xe9\xbe\x61\xd9\x6f\x5b\xfe\xdf\x69\xff\x61\x00\x4b\xd8\x79\x70\x6b\x92\xf6\x92\x55\x12\x91\x17\x0c\x5f\x6f\xe6\xfd\x4c\x15\x9d\x3c\x20\xf6\x72\x2a\x70\x3e\x85\x5b\x5b\x52\xe7\x22\xcf\x4b\x36\xbc\xf4\x56\x5d\xcf\x7b\xd6\xe0\x1b\x57\x5c\x6c\xf2\xae\xa8\x08\x1f\x05\xd7\x45\x37\x69\x6a\x3d\xb5\x36\x5f\xac\xdf\x95\xf0\xe6\x42\x4f\x0a\xbe\x43\x2b\xc3\xe1\xbf\xce\x4e\xc5\xcb\x49\xcc\x27\xe0\x09\x2e\x19\xfd\x0d\x3c\x40\x6e\x89\xfb\xf9\x34\x7f\xf8\x3a\x33\x5b\xdd\x2d\x55\x78\x80\xa8\x76\x07\xfb\x12\x1e\x60\x60\x66\xd1\x80\x45\x0b\x33\x2d\x87\x8d\xb7\x34\x0b\x61\xd1\x0a\x89\xb3\xd1\x85\x6b\xd4\xc2\xaa\xd2\x8d\x6b\xa6\x55\xd1\x23\x96\x80\x5b\x55\x11\x5c\x98\xde\xb9\x21\xd3\x66\xeb\xaf\x9c\xbe\xeb\xbb\x6e\x50\x48\xb3\xf7\x80\x36\x0c\x7d\x3f\x80\xe3\x4d\x68\x96\x62\xad\x68\x96\xbb\x0d\x69\x96\x62\x6d\x69\x96\xa3\xcd\x69\x02\xb8\x2d\x6a\x96\x62\x8d\x6a\xa5\x03\xef\xea\xeb\xe1\x34\x3d\x64\x65\x59\x5f\x75\x42\xf0\xfa\x77\x37\x4d\x38\x92\x37\x7c\xcc\x01\xb9\x6d\x8f\xec\x54\xc9\x0f\x31\x67\xe8\xc4\xe3\x69\xe0\xcd\xcb\x21\x94\x3c\xb5\xae\x02\x0c\x6d\xa1\x23\xa7\xf8\x43\x90\xc6\x7b\x92\xfa\x6f\x39\x8b\xa9\xd7\x25\x8d\x3f\xc9\x19\xcf\x78\x78\x12\x8d\x5a\x21\xbc\xd8\x8f\x4e\x64\x87\xac\xc9\x27\xfc\xbf\x53\x19\xff\x9e\x37\xf5\x25\xaf\x5f\xab\xc9\xac\xac\xb3\x9c\x35\x58\xfc\x1b\x3a\xdb\x2d\xe0\x6c\xe7\x9f\xdc\x16\x46\x75\xe5\x5c\xe6\x9f\xba\xac\x1e\x5f\x3e\x0c\x1c\x88\x39\xcb\xc2\x58\x69\x8c\x99\xbe\xa3\x61\x06\x89\x19\xfd\xa8\xff\x1e\x02\xc7\xc0\x2b\xa1\x1b\xd0\xaf\x4e\x88\xd9\xc0\x05\x1e\xb8\xf0\x20\x33\x53\x5d\x56\x50\x5d\x56\x90\x8d\xfe\xdb\x28\x36\x43\xd4\x06\x36\xe0\xd0\x86\xc7\xa8\x19\x5c\xf4\xdf\x43\xdc\x9a\xc9\x45\xff\x6d\x14\x9b\x11\x6e\x27\xc6\x83\x25\x6f\xe4\x53\x83\xbd\x93\x53\xb2\xae\xeb\xc7\xf7\x25\x3b\xf0\x3c\x55\x9c\xa3\xb9\xd1\xc0\x33\x30\x0d\xcf\x0a\x20\xfb\x15\x7a\x9a\x8b\xdd\xb3\x18\xe6\x45\xdb\x7e\x5b\x4f\x7a\x1a\x0f\x9a\x69\x1c\x1e\x96\xa6\x53\x57\xf0\xe8\x4d\x88\xf5\xae\xb4\x3f\xf6\x11\xca\xdd\x5f\x33\x1c\xd7\x78\x24\x33\x1c\x99\xfb\xae\xbc\x9b\x31\x8b\x7f\x42\x68\x6c\x17\xc0\x9d\x50\x95\x02\x7b\xd2\x7a\x0c\x6a\x3d\x33\xf6\x07\xe4\x4e\x4a\xe2\x5c\xb4\x52\xe6\x6a\x50\xa1\x4f\x98\x82\x82\x89\xa8\xac\x9b\x38\x4a\x5f\xa6\x6f\x32\xde\x17\xd9\xc0\x30\x9e\x0c\x46\x93\x4e\x39\xa9\xa6\x9c\x04\x53\x68\x5a\x29\xdf\xfb\x1b\x58\x5d\xb1\x57\x39\x76\x9e\x16\xfb\xf0\x4b\xc0\x43\xc7\x24\xd9\xc4\xfc\xab\x2c\x42\xdb\xb4\x10\xd9\x48\x50\x12\xd8\x5f\x12\xef\x0e\xce\xc4\xda\xd3\x24\x01\x1f\x15\xe6\xeb\x7e\x20\x10\xc8\x71\x91\xc1\xa4\x44\xa9\x05\x3b\x1b\x52\x4d\x02\xd1\xa4\x2f\x91\xb3\x63\x76\x2d\x3b\xec\x0a\x82\x45\xe8\x6b\x59\x6c\xd5\x84\x69\x9f\x19\xc9\xc1\xfc\xa7\x9f\x00\x4e\x5d\x82\x86\xbc\x96\x71\xfb\xdd\xe8\x3d\xc6\xb8\xd7\x5e\xdc\x8d\x00\x7b\x77\xdb\x6a\x6a\x7b\x4f\x02\x79\x66\x79\x80\x06\xfb\xaa\xb0\x72\xa0\xe8\x5a\x92\xdb\xb3\x10\x43\x6c\x83\xba\x94\xc4\x77\x84\xcc\xb0\x03\x0b\x11\xa8\x34\x3d\x10\x8a\xce\xd5\x03\xe1\xa8\x84\x3d\x06\x14\xdf\xe8\x6e\x9a\xfa\x75\xda\xb2\x4b\xd6\x64\x5d\xdd\x38\x2a\x22\x95\xe2\xbf\xfd\xd7\xff\xe3\x27\x07\x77\x7f\x2d\x4b\xd6\x45\x20\xff\xaf\xff\xa7\x8b\x9c\xd7\x11\x98\xff\xef\xff\xed\x22\xf2\x4d\x3e\x96\xb7\x11\x7c\xff\xf7\xff\xe7\x27\xe1\x5b\x92\x21\x1d\x46\x0e\xd8\x7e\xca\x5c\x5e\xde\xec\xf7\x4f\xe6\x0f\x13\xf1\xd0\xd7\x1c\x2b\xb3\xb6\xa7\xed\xd9\x9b\x7b\xb4\xbd\xef\x62\xcd\x7b\xca\xce\x03\x01\xe6\x32\xc5\xa2\xcb\x04\xda\x29\x83\xe8\x54\x2c\x2d\x91\x11\x09\xd7\x86\xf4\xf8\x84\xf9\xa5\x06\xa3\x26\x17\xf6\x0e\xaf\xa8\xf3\x0b\x13\x8b\xca\xc0\x45\x2c\x83\x22\x76\xf4\xa1\x70\xe2\x76\x8c\x75\x35\x96\x97\x48\x6c\x7d\x1c\xa8\x6f\xb8\xf6\x85\xc7\xba\x36\x5e\x43\xe3\x97\x48\x1c\x97\x29\x34\x33\x03\x52\x1c\x2e\xce\x36\x86\x2f\x7c\x8f\x69\x00\x83\x3d\x79\x54\xd5\xa8\x8d\x40\x58\x43\x41\x21\x99\xf1\xeb\xed\xb1\x19\x03\xd4\xca\xec\x86\x79\x61\xd8\xd6\x95\x42\x30\x26\x31\xfd\x6d\x7a\x66\xd5\x75\x02\x40\xf4\xa1\xb1\xca\x2d\x09\x60\xed\x9e\x36\x31\xe5\x81\x14\x84\xe7\x93\x00\x77\x94\xf4\x61\x94\x89\x73\xbd\xd8\x08\xca\xc1\x37\x9c\x76\xd5\x04\xab\x61\xdb\x98\xab\x8c\x78\xaa\xb8\xff\xad\x67\xf0\x4e\x48\xca\x5d\x16\x79\x19\xca\x58\xaf\x2d\xec\xdb\xee\x2b\x73\x61\x0e\x2e\x0c\x72\x59\xd4\x35\xc1\x45\x2a\xfd\xbb\x89\x74\xf3\x06\xdb\x26\xaf\xeb\x59\x17\xac\x86\x4b\xee\x5a\x3e\x35\x34\xbc\x91\x6e\xf8\x03\xf5\xf7\x1a\x4a\xab\x29\x67\x6e\x9a\x00\xa8\x5e\x62\x3c\xc1\x4d\x33\x6a\xf5\x37\x7b\x12\xdb\x9f\x70\xcb\x6c\x3d\x8c\x97\x25\x2f\x4f\xf0\x9b\xec\xef\xb3\xbe\xbb\xa6\x65\xd1\x76\x93\xd9\x99\xb5\x6d\xf6\xc2\x94\xd1\x76\x36\xe1\x32\x4b\x40\x78\xa4\xc8\x33\x18\x20\x0e\xb9\x85\x15\x08\x74\xb0\x0e\x05\x2d\xe4\x61\x18\xc5\x9d\x92\x69\xe4\xbc\xf8\x56\xe4\x28\x5b\xb0\x44\x84\xd9\x47\xe1\x82\x4e\xaf\xa8\x45\x6f\x25\xbd\x2a\xf2\xd4\x18\xe2\x9f\x89\xf8\xe7\xab\xf8\x07\x37\xae\xf2\xcd\x97\xe7\x89\xfa\xdf\x6c\xfd\xf0\x3e\x2b\xd9\x37\x56\xca\x8b\x5b\xba\x37\x92\x4c\xf7\x07\x96\x7b\x9b\xe3\x60\x16\xd7\xb6\x9e\xbc\x2b\xa6\x7b\xd6\xbd\x32\x56\x49\xbc\xd8\xf5\x3d\x07\xe6\xe4\xcd\x8b\xb7\xe6\x57\xf3\x13\x77\xd0\xea\x7d\x51\xb2\xc4\x80\x89\x48\x7b\x22\xea\x5f\x9c\x5f\x6c\xab\x2a\xda\x1f\x33\xab\x03\x7d\x87\x39\x29\x4d\x6f\x1f\xc8\xc2\x46\x04\x95\x8a\xbe\x83\xf3\x9c\x87\xdc\x57\x13\xdb\xdc\xc7\x4f\x49\x34\x3e\x70\xd0\x74\x40\xa1\x46\x9c\x11\xe9\x36\x46\x24\x68\x11\x5a\x83\x54\xef\x97\x58\x66\x46\xe5\xbd\xbd\x3c\x31\x5b\x26\x4a\x1f\xac\x54\x20\x46\x6b\x21\x5a\x6e\xb8\x12\x7c\x7a\xa3\xf7\x8c\x29\x37\xcd\xd1\x09\xd9\x89\xd1\x94\xa9\xa6\xe0\x81\x66\x25\x7b\x2b\xf6\xc3\x60\x71\x5a\xc1\x04\xa2\xda\x37\x66\x74\x1b\x8b\xc8\xa8\xbc\x40\xf1\xe3\x12\x68\xa5\x5f\xd9\xe7\x33\xd0\x67\xa2\x3c\x56\xf8\x7e\x2d\x38\x56\x83\x91\x6e\x03\x3a\x2d\x0d\x33\x90\xc1\xc8\x0f\xed\x04\x98\x4a\x33\xae\xe4\x8a\x6c\x19\xd3\xf8\xc3\xd4\x3c\x60\x66\x47\xa0\x69\x56\x13\x04\x2e\x26\xa1\x15\xc6\x43\x08\x86\x78\x19\x08\x98\x9a\xb5\xcc\xdc\xb5\x06\x30\x52\x3c\xb7\x5d\x98\xf9\x00\x3e\x1b\xf2\xa4\xb8\x78\xae\xf3\x33\x37\x59\xc9\xbe\x15\xbf\x8f\x1e\x92\x03\x09\x68\x56\x0c\xe1\xa0\xfe\x8a\x88\x08\xa3\x54\x79\x87\x34\x53\x2b\x0d\x1b\xa6\x4e\xd5\xd5\x39\xd5\xeb\x3f\xfa\x36\x3a\x54\x39\xbd\xc5\xa1\x20\xa8\xcd\x0d\xc3\x75\xb8\xe1\x81\x63\xf2\x84\x0a\xd9\xbb\x33\x70\x23\xfd\x33\x15\x4b\x6c\x60\x8e\x75\xce\x06\xd4\xb2\x48\xae\xfa\x85\x70\x15\xa4\x62\x2d\x48\x95\xef\x05\x82\xd9\x86\xf8\x36\x45\xce\x4c\x2b\x2d\x52\x08\x99\xbe\x32\x47\xb6\x8e\x4a\x66\x73\x88\x4d\x47\xf5\x70\x65\xc5\x80\x3d\xae\x94\x00\x97\x7e\x1c\xd5\xa6\xae\xb2\x70\x84\x58\x3f\x4d\x82\xfb\x22\xd8\x15\x08\x4c\x27\x20\xfe\xe8\xb2\x17\x2c\xb1\x80\x50\xec\x9c\x1d\xea\x46\x9c\xbe\x5c\xab\x9c\x35\xbd\x63\xa6\xc9\xf9\x15\x5a\x83\xf8\x74\x5a\x03\xd1\x6a\xad\x41\xbc\xf7\xf1\x6d\xb8\xc4\x5e\xce\x44\xc5\x20\xd2\x54\x78\x06\x36\xf2\x1e\xd4\x2a\xef\x7f\x00\x3e\x15\xbd\xa8\xe2\xa7\x6d\xd0\x08\x81\x91\xc0\x47\x9a\x0a\x22\x30\xc4\x47\xea\x4c\x46\x4d\xba\x32\xcb\x67\x88\xc3\x8d\xec\x5e\xb7\xa2\xa9\x60\x8d\x0c\xf0\x57\xc7\xfe\x07\x90\x20\x02\x37\x8f\x4f\xc7\xec\x78\x70\x20\x23\x24\x46\x42\x3e\x49\x22\x88\xc0\x06\xfa\xfc\xb0\x78\x16\x46\x52\xa3\xd3\xb1\xa2\xc7\xcd\x31\x3f\xee\x31\xe0\x18\x99\xdd\xcb\x2f\x3e\x3a\x98\xd8\x80\xc2\x3c\x5d\x3e\x2e\x9e\xac\xae\x42\x63\x53\x8f\xeb\xe3\x93\xc5\x4e\xbc\x0a\x1a\x94\x19\x9d\x12\x08\x22\x88\xc0\x10\x3d\xdd\xac\x36\x07\xd8\xd4\x45\x75\xac\xe3\x04\x16\xaf\x6e\x7e\x50\x60\x48\xe4\x1e\x81\xe9\x10\xde\xe3\xe3\x31\x3f\x3e\x62\xc0\x31\xba\xe1\xc6\xff\xfa\xe8\x60\xba\x01\x28\xcc\x1f\x57\x8b\x39\x54\x54\x4f\xf8\xf0\xf1\x98\x59\x23\x48\xbf\xcf\x18\xb6\x1d\x6e\xec\xb1\x8f\x0e\x66\x3d\x00\x85\xc7\xc5\x92\xa5\x7b\x6b\x38\x13\xa1\xcb\x7d\x83\x5b\x4d\xae\x1e\x19\x0c\xca\x8d\x84\x3d\x7b\xc8\x20\x62\x43\x02\x4f\xd9\x72\xb1\x18\xc4\xc6\x0e\x55\xc8\x60\x02\x78\xc3\xd6\x7d\x59\x6b\x87\x44\x32\xa1\xe7\x10\x60\x23\x09\x71\x22\xf1\xbd\x45\x53\x60\x7d\x99\x80\x5e\xad\x83\xc3\x4b\xe5\xd6\x99\x34\xbe\xa2\xad\xe6\xdc\x66\xa1\x6f\xa2\x18\x25\xf2\x8c\x18\x21\x88\xbe\x50\x64\xef\x0b\xc3\x06\x36\x1f\x88\x9b\xcb\x17\x6d\x4c\xca\x7a\x7f\xcf\xf8\x74\xa1\x62\xca\xde\x1d\x38\x3b\x3d\x93\x1b\x91\x22\x37\xc6\x7d\xa7\x30\x7c\x73\x93\x38\x5e\xd1\x91\x38\xa7\x22\xcf\xfb\x0e\x56\xbd\x79\x2c\xde\x58\xee\x6e\xc0\x1b\xce\x3e\xdc\x4f\x72\xf6\xe5\xdd\x6d\xfd\x50\x9c\xd8\xd3\xe6\x41\x87\x71\xf0\xe0\x38\xf9\xbb\x5c\x9a\xc9\x95\x40\x9a\xd8\xc1\x7f\xfc\x29\xa7\x79\x9a\x7e\x3b\x25\xd3\x64\xbe\x49\x2f\x6f\x0f\x3b\x18\x61\x44\xc5\xfe\xf1\x13\xcb\x11\xdb\x10\x11\xc2\xe9\x88\x26\x4c\xb8\x15\x97\x4d\x25\x1e\x4b\x2f\x7c\xcf\x62\x88\x5b\xb9\x39\x81\x23\x7f\xd5\xd8\xca\x71\xf1\x94\x30\x67\x98\xda\x2e\x5f\x81\x50\x4b\xa1\x44\xcd\x40\xb2\x1f\x7e\xfc\x17\x99\xa3\x8d\xc7\x5e\x1a\x2d\xa0\x02\x30\xcd\x4f\xde\x28\x4c\x32\x1e\x4b\xe7\x0a\xc3\x8f\x97\x3e\x96\x3d\x2c\x14\xdb\x89\x88\x8f\x87\x6a\x3a\x55\x27\xe2\x35\x4d\x38\x19\xb4\x69\x7e\x8a\x8f\xdc\x04\x0c\xe3\xc3\x37\x0d\xb4\x1f\x1d\xc3\x69\xb1\xfa\xa1\x81\x9c\x16\xaf\x1f\x19\xcd\x39\x98\x0e\x24\x9f\xb7\xf3\x06\xa9\xdf\x80\x58\x46\xdb\x24\xce\x8f\xc6\x27\xe6\x87\x7e\x02\x1d\x15\x80\xe8\x8a\x17\x11\xcc\xa4\x27\x42\x3c\xd6\x1a\x88\xd8\x4f\x6e\x93\x59\x95\x7d\xdb\x67\x8d\xfa\x37\xbc\xce\xb7\x6a\x04\x2e\xa4\xd2\x13\xb7\xed\x22\xac\x3d\xaf\x0c\xad\x61\x3f\x4d\xd1\xfb\x27\x64\xfc\x82\x93\xd5\x1d\x9c\xa3\x3a\x7d\xe4\xb9\xad\x6b\xc8\x88\xdd\xb7\x85\x55\xc0\x22\x1c\x2c\x56\xfa\x75\x17\xff\x19\xcc\x3c\xb5\xea\xcf\x3d\x23\x7a\x03\xd4\x9a\x62\x8d\xfe\x7f\x97\x9d\x3a\xed\xb2\xbd\xc8\x09\x32\x84\x51\xea\x50\xce\xf6\xd0\xd4\x65\xd9\xa3\xf0\xa8\x48\x85\x73\x33\xc7\x94\xbc\xf1\x8b\x25\xcb\x84\x5a\xe3\xa8\x51\xa2\x44\xd8\x37\xfd\x8c\xae\xfe\x12\x71\x9f\x5e\xd8\x5f\xd4\x5f\xe6\x61\xbc\xce\xe6\x18\xcd\x65\x66\x3c\x57\x14\x8f\xa5\x1e\x83\xf1\x4b\x98\x99\x22\x46\x33\x82\x68\xf4\x7e\xef\xa2\xff\xb1\x37\x8b\x46\x54\x01\x24\x49\xb6\xf2\xdb\x79\x7d\xad\x79\xda\x5b\xe5\x87\x1b\xc9\x8c\xdd\xd1\xc6\x36\x4e\xa8\x85\xd9\x3d\xed\xeb\x20\x85\xb8\x70\xc2\x3c\x24\x10\x09\x14\x8a\xd2\x55\x87\x82\x0a\x1d\x8a\xc2\xe6\x36\x7b\x74\x5b\xba\x58\xa1\x7a\x72\x8c\xf1\xed\x89\xa0\x7d\x92\xbe\xda\xea\xe0\xef\x53\x53\x80\x31\xcd\x12\xaa\xd9\x3d\x26\xc6\x51\x64\xe5\x2b\x8f\xe8\x2d\xdf\xd0\x24\xe9\x28\x05\x4b\x88\x6e\x8c\xda\x61\x37\xc9\x8f\xb8\xdf\x6f\x21\x45\x5a\x75\x04\x16\x6d\xf2\x91\x2c\x70\xcd\x0d\x61\xb9\x43\x04\x13\x2f\x62\x88\x04\xd1\xc8\x21\x92\xa6\xe9\x9d\xad\x8a\x6b\x4c\x4f\x64\xac\x25\x87\x9c\xe2\x2c\xb9\x1f\x27\xd4\xb0\x91\x96\x3c\x80\x14\xe2\x72\x8f\x25\x0f\x50\x08\x58\x72\x88\x1d\x6b\xc9\x43\x58\xa1\x7a\x46\x5b\xf2\x20\xda\x87\xd5\xd4\x67\xc3\xdd\xde\xa4\x6c\x78\xa8\x41\x42\x75\x1a\x6d\x50\x22\x0c\x78\xb0\x93\xc8\xe1\x48\x12\xb9\xc3\x7a\xbb\x76\xd8\x24\x1f\x48\xba\x68\x1e\xf8\x59\x48\x91\xd6\x1b\x81\x45\x1b\x7b\x24\x0b\x5c\x5b\x43\x58\xee\xb0\xc0\xc4\x8b\x18\x16\x41\xb4\x40\xe6\x88\x3b\x1b\x16\xd7\x98\x9e\xc8\x58\x03\x0e\x39\xc5\x19\x70\x3f\x4e\xa8\x6d\x23\x0d\x78\x00\x29\xc4\xe5\x1e\x03\x1e\xa0\x10\x30\xe0\x10\x3b\xd6\x80\x87\xb0\x42\xf5\x8c\x36\xe0\x41\xb4\xcf\xd0\x54\x9f\x0d\x77\x3b\x94\xb2\xe1\xa1\x36\x09\x55\x6b\xb4\x59\x89\xb0\xe1\xc1\x7e\x22\x47\x24\x49\xe4\x1e\x0f\xdc\xb1\xc6\x26\xf9\xf8\xa4\x57\x10\x27\xd2\x82\xbb\xa0\xf8\x6c\x39\x96\x07\xae\xaf\x01\x24\x77\x5c\x20\xe2\x45\x0c\x8b\x10\x16\x39\x2a\xe6\xd9\x62\xb3\x5c\xde\xdd\xb0\xc4\x9c\x2f\xc8\x8c\x35\xe2\x80\x57\x9c\x0d\xf7\xa2\x04\x1a\x37\xd2\x82\xfb\x71\x02\x3c\xee\xb1\xdf\x7e\x02\x01\xf3\x0d\x90\x63\xad\x77\x00\x29\x50\xc7\x68\xdb\x1d\xc2\xfa\x1c\x25\xf5\x19\x6f\xa7\x2f\x29\xdb\x1d\x68\x91\x40\xad\xee\xb0\x27\x11\xb6\x3b\xd4\x4b\xbe\xa1\x48\x91\xb9\xc3\x78\xbb\x76\x18\x52\x17\x71\x24\x21\x8b\x61\x56\x4c\x04\x29\x8d\xc1\x10\x71\x58\x63\x30\x74\xb4\xd9\x18\x24\x1d\x86\x34\x06\x49\x47\x00\x8d\x35\x9a\x70\xa1\x14\xf1\x5c\xd2\x88\xca\x05\x9b\x22\x66\xc5\x18\x66\x83\x8f\xfb\x88\xb6\x77\x2c\x0c\x2e\x64\x84\x91\x89\x40\x24\xed\xcc\x62\x9e\xad\x1f\x17\xbb\x0f\x6c\x24\xd9\xdc\xe3\x66\xb1\x10\x56\xb8\x79\x22\xe7\xb2\x20\x5a\x98\xd3\x3d\x33\x5a\x90\x46\x60\x52\xb3\xf1\x63\xe7\xb5\x30\x5e\xb8\xbe\xd1\xb3\x5b\x04\xe2\x08\xc5\x1b\xa1\x1d\xa1\x0e\xa6\xe6\xb8\x70\xeb\x84\xab\x77\x87\xd5\x88\x98\xe9\x22\xfa\x6d\x84\x09\xfd\xd0\x64\xe7\x84\x30\xbf\x5b\xd3\x50\x5c\x48\x6e\xf4\xd4\xe5\x9f\xe5\x62\xda\x3b\xc0\x80\x5a\x56\xfb\x27\x54\x64\xf9\xee\xc8\x16\xb5\x7a\xf7\x63\x79\x76\x5f\xd7\xab\xe3\xfe\x23\x96\x19\xb0\x8e\xdd\x20\xf2\xa0\x04\x9a\x24\x7a\x7b\xc8\x87\x13\xe0\x71\xdf\xe6\x90\x8f\x40\x70\x6f\xa8\x1a\xbf\xb8\x08\x20\x05\xea\x38\x62\x63\xc8\x8f\x35\x42\xb5\x62\x55\xc0\xdb\x91\x94\xd5\x0d\x34\x47\xa0\x4a\x63\xc7\x7f\xd4\x96\x90\xbf\x7f\x62\x2c\x2d\xa0\x71\x87\x99\x75\x2d\xa6\x49\x9d\xb8\x33\xe1\x35\xb3\x81\x35\x85\x7f\xf9\x11\xd3\xcc\x01\x06\xb8\x92\x86\x56\x3a\xce\x58\x40\x64\x8b\x18\x0b\x21\xac\x1f\x68\x66\x01\xeb\x38\x33\xeb\x45\x09\x34\x49\xa4\x99\xf5\xe3\x04\x78\xdc\x63\x66\xfd\x04\x02\x66\x16\x20\xc7\x9a\xd9\x00\x52\xa0\x8e\xd1\x66\x36\x84\x75\x9f\x99\xf5\xaa\x80\xb7\x23\x29\x33\x1b\x68\x8e\x40\x95\xc6\x8e\xff\x08\x33\x1b\xea\x9f\x18\x33\x0b\x68\x7c\xba\x99\x1d\xf5\x58\x83\x83\x16\x69\x6c\x51\xe8\x98\xf6\x0e\xb3\xc1\x15\x36\x62\x0f\xc7\x19\x1a\xb8\x90\x11\xa3\x23\x02\x91\x5e\x03\x3e\x3f\x1f\x96\x1f\xda\x7c\xb0\xb9\xc7\x99\xdf\x10\x56\xb8\x79\x22\x8d\x70\x10\x2d\xcc\xe9\x1e\x53\x1c\xa4\x11\xb0\xc6\x36\x7e\xac\x41\x0e\xe3\x85\xeb\x1b\x6d\x96\x23\x10\x47\x28\xde\x08\xed\x08\x75\x30\x65\x9f\xc3\xad\x13\xae\xde\x1d\x56\x23\xc2\x50\x47\xf4\x5b\x8c\xad\xb6\xc9\xdc\xb3\xf9\xe0\x98\x5d\x10\x07\x39\xe6\x75\x1c\x07\x2d\xd2\x5c\xa3\xd0\x31\x0d\x1f\x66\x83\x2b\x72\xc4\xee\xb9\x1b\xd5\x8b\x0a\x19\x13\xd7\x1b\x46\xa4\x23\x7b\x9f\x9f\xe6\x30\x0e\x69\x74\xf8\xb8\xc5\x3d\x32\x80\x3c\x80\x15\x6e\x9e\xd8\x20\xf2\x10\x5a\x98\xd3\x5d\x81\xe4\x21\x1a\xa1\x50\x72\x0b\x3f\x3a\x98\x3c\x88\x17\xae\x6f\x7c\x40\x79\x18\x71\x84\xe2\x8d\xd0\x8e\x50\x07\x53\xe6\x3a\xdc\x3a\xe1\xea\xdd\x61\x35\x62\xc2\xca\xc3\xfd\x16\x63\xae\x6d\x32\xf7\x44\xb5\x38\x66\xd7\x3d\x18\x8d\xbb\x97\x6f\x63\x45\x1a\x6b\x0c\x38\xa6\xd5\x83\x4c\x70\x25\x0e\x1f\xf5\x22\x71\x03\x88\x84\x51\x91\x03\x21\x3c\x72\xb8\xec\x57\xcb\x6c\x71\xfc\x88\x9d\xb6\x98\xc7\x06\xa6\x78\x91\x82\x4d\x13\x1d\x9c\xe2\xc7\x0a\xf2\xb9\x2f\x40\xc5\x4f\x22\x18\xa2\x02\xd0\xe3\x83\x54\x02\x68\xc1\xba\x8e\x08\x54\x09\xe1\x8d\x50\xb7\x78\xa5\x08\x74\x2c\x65\x9b\x83\x0d\x13\xac\xda\x78\x1b\x11\x15\xae\x12\xea\xaf\x18\xbb\x6c\x51\xb9\xc3\x2c\xbb\xf6\x55\xd1\xff\x85\xa7\x32\xcc\x8a\x8a\x48\x06\x0f\xee\x1a\x23\x37\x3f\xcd\xc4\xf2\x52\x62\x9e\x0f\x9f\xe7\x65\xbe\xc5\xa5\x68\x36\xeb\xca\x13\x12\xc8\x5b\xb5\x13\xe7\x7b\x57\x5f\x54\x3a\x69\x34\x85\x41\xaa\xf3\x61\x2c\x53\x8a\xea\x6d\x48\x70\x8b\x03\x90\x15\x98\x8e\xa8\x41\x2f\xa9\x48\x38\x7b\xea\xce\x25\x27\x29\x3b\x6b\x28\x37\x73\x2d\xca\xf6\x24\xa0\xa5\xe4\x56\xba\x6a\x85\x03\xa6\x04\xd5\x68\xfc\x6a\x6f\xb8\x4b\xad\x34\x2f\x4e\x07\x83\x9b\xc2\x37\xf0\x94\xc0\xb7\x57\xe7\xd9\x17\xfd\xf7\x77\x7d\xf3\x5d\xc9\x76\x6d\xfa\xa9\x9f\xc8\x85\x01\x12\x3a\x93\x97\x8a\xd5\x75\x7d\xe4\x99\x61\x91\xea\x1c\xf0\x12\x6f\x21\x8e\x79\xeb\xd2\x48\x28\xcd\x89\xf2\x8b\xfd\xeb\xf4\xe7\x64\x9a\x3c\x5d\xde\x1e\xe2\x9f\x10\x13\xdf\x39\xec\x34\xbf\xca\x2c\x7d\x4f\x9b\x73\x6b\x16\x5c\x9a\xfa\xc2\x9a\xee\xfb\xd6\x16\x71\x52\x5f\xb2\x43\xd1\x7d\x9f\x68\xea\x26\x5a\x57\x9c\x7b\x15\x38\x5e\x2b\x91\x8f\x80\x65\x2d\x9b\xd6\xd7\x0e\xa4\x68\x70\x1b\xc2\x78\x3f\x7c\xfe\xc0\x35\xd3\xa8\xdd\xe6\xf2\xf6\x10\x40\x5a\x38\x48\xf3\x30\xd2\xd2\x42\xfa\x9a\xac\x5c\x24\x6f\x6e\x8c\x74\xd2\xff\xcc\xd2\xb5\x8d\x65\x4c\xd1\x48\xf5\xdc\xbc\x21\xff\xf2\x65\x7d\x79\xb3\xb2\x84\x44\x93\x5c\x3c\xdc\x64\x9f\x0c\x56\x23\x88\xb4\x24\xe4\x98\x9a\x82\x4c\x2d\x49\x9c\x1c\xfd\xef\xd8\x8c\x27\x82\x2e\xa4\x35\x47\xd3\xd0\x93\x49\xe7\x7d\x29\xe7\x29\xaf\x00\xf3\xa6\x32\xc2\x59\xc9\x5c\x6f\x24\x18\xfc\x2e\xb6\xe4\x41\x4d\xe9\x54\x54\x00\x8c\x27\x27\x37\x33\x9b\xa8\xac\xbe\x94\x5b\x76\x33\x5e\x3c\xb3\x2a\xcb\xde\x2e\x19\x7f\xae\x95\x4c\xa8\xe0\xa0\x74\xd9\x9e\x4c\x73\x61\xbe\x49\x86\x65\x4c\x80\xa6\x9c\x0f\x11\xd1\x39\xd6\xc8\x32\x78\xb9\x8e\x9a\x59\x4a\x35\x36\xf2\x72\x9a\x4c\x5a\x41\x37\xbf\xc3\xd0\x4a\x86\xd1\x76\xdf\x4b\xb6\xe5\x15\xb5\x68\x4a\x13\x3d\xa4\xe1\x92\xe7\x2d\xbe\xfa\x2e\xcd\xfa\x82\x3c\xbf\xde\x5e\xe0\x83\x00\x3e\x75\xb0\x10\x0f\x2b\x59\x8e\xd2\xcd\x7d\x94\x21\xf6\xe1\x07\xdb\xe5\x02\x3a\x0a\x92\xdd\x5a\xf9\x93\x1b\x35\xf4\x00\x99\x7b\x1e\x3b\xe0\x7f\xd0\x6f\x1d\x78\xd3\x8b\xcf\xd3\xc5\xd2\x58\xc9\x99\xce\x9e\xf5\x64\x09\xba\x80\x05\x36\xa7\x77\x00\x60\xfd\x83\x8f\x97\x99\x46\x2d\xe2\xb1\xa3\xa7\xcb\x5b\xd2\xcf\x5f\xf4\x43\x1d\xc3\x0b\x0f\x06\xe9\x99\x9b\xf1\x0c\x54\xca\xf6\xef\xc4\x23\x6f\xa8\x73\x29\x8a\x3e\xec\x62\x4a\x32\x21\x47\x53\x80\x7d\x96\xbb\x29\x99\xca\x57\x0e\x10\x80\xc4\x6c\x34\x4f\xf5\x01\x5c\x30\x2d\x0c\x99\x09\x49\x5a\x3a\x2b\xd3\x1b\xed\x0e\x4b\xf9\xc7\x3a\xc5\x16\x9a\xe5\x1a\x8f\xda\xe8\x98\x18\x2b\xbb\x09\xd6\x58\x62\x01\x17\x74\xaa\x3d\x99\x72\xcc\x8e\x31\x0c\xf3\x87\xb6\x22\xa2\xe9\x38\x8f\x18\x45\x10\x8c\xd8\x29\x20\xc1\xdd\xcd\x08\x14\x94\xde\xee\x20\xc1\x23\xe6\xba\xbf\x2b\xce\x97\xba\xe9\xb2\xaa\x0b\xb5\x39\xbe\x9e\x1e\xf7\x1c\xce\x5d\x2c\xfc\x3b\xa9\x3e\x17\x49\xae\xa6\x22\x1d\xc5\x58\x3b\xed\x7a\x4b\x88\xa6\xd3\xd0\xfc\xd9\x2a\x64\x6f\x63\xf0\x82\xa5\xd3\x3b\x5f\x72\xa7\x77\xc8\xe1\xf7\x85\xe7\xe5\x9c\x4c\xf9\x3f\x0f\x71\x1c\xb4\x8c\x91\x79\xc6\x86\xdc\x5c\xc9\x5a\x66\x58\xb5\x32\x8e\xee\xcc\x47\xb6\xa0\x25\xee\x67\xa6\x27\x74\x62\x1a\xde\xd9\x42\x3b\xd6\x11\xd7\xf1\xdc\xa8\x41\xe9\xbc\x68\x06\x27\xea\x00\x9b\xbe\x68\x5f\xbf\xb1\x7c\x34\x3f\x8d\xa9\x97\x3c\x73\xfb\x09\x4f\xbe\xd4\x47\xd7\x36\xe9\xc3\x3b\xbd\xbb\x65\xf6\x8d\xf4\x0a\xc1\x4b\x70\xa0\x43\xd2\x21\x71\x64\x42\xbc\xe4\x2b\x5e\xc7\x75\x5f\x17\xf5\xad\xd3\xb7\x70\xdd\x45\x2e\xe0\xc5\xfc\xc0\x39\x18\x6f\x0c\x4c\x67\x4b\x9e\x51\x57\x39\x77\xf3\x5e\x5f\x55\xb6\x4a\xe8\xee\x90\x69\xe8\xde\xe1\x5c\xe2\x49\xd8\x07\x72\xbf\x01\x1d\x63\x95\xfb\xcc\xa1\x7a\xb4\x85\xde\x16\x19\x46\x8c\xef\x81\xb5\xcf\x4f\x77\xe7\x3a\x79\xf8\x50\x02\x0e\x2f\xf2\x8e\x9a\xf3\x58\x5d\x4a\x26\x0f\x75\xde\xa6\x8b\xf1\xe3\xe1\x8b\x6c\xd8\x0b\xc6\x5e\x6b\x8e\xbc\xba\x16\xc0\xb8\x6b\x8a\xf9\xf4\xb9\xc4\x1d\xf8\x8e\xc5\x44\x2c\x65\x4c\x8f\x7a\x9f\xde\x83\x43\x5a\x6f\xaf\xa0\x03\x5a\x6f\x22\xf5\xfd\x9a\x7c\x4d\xbe\x4c\x7b\xb7\xed\x01\xb7\x41\x7c\x7f\x65\xdc\x0e\x9c\xb3\xe1\x86\x36\x8e\x78\x9f\x06\x79\xba\xd1\x5a\xdd\xd9\xcf\x7e\xaa\x25\x97\x3a\x62\x48\xd0\xfd\x5a\x63\x6d\x06\x01\xc0\x8b\x38\x53\xf1\x0e\x09\x4d\xd3\x74\x57\x31\x92\xdc\x38\x01\xcb\x22\x49\x12\x4b\x94\x9c\xb5\xbf\x75\xf5\x05\x5f\x2e\xc8\xc2\x8f\xaf\x97\x14\xa1\xe0\x8a\x49\x02\x7e\xda\x9a\x49\x31\x0e\x6c\xd5\x6b\xb8\xd1\xab\x13\x1b\xd1\x5a\x9f\x04\xb7\xdc\xa0\x73\x6c\xa5\xa2\x23\xb0\x45\x1a\x51\x6e\x5c\x1e\x28\x4a\x26\x4c\x20\x7d\xf9\x9d\x4b\x93\xa8\x33\x51\xd2\x58\xbd\x8b\xc7\x7c\x12\xf8\xf0\x22\xdf\x83\xc8\x6e\xc3\x18\xde\x0e\xbd\x9f\xcc\xe6\x6d\xc2\x77\xc3\x8b\x6a\x5a\x5f\xbb\x77\xe3\xb1\x78\xeb\xd5\x27\xb5\x87\x32\x55\x8b\xb2\x01\x72\xe6\x79\x39\x07\x42\xd1\x8f\xe7\x40\x38\xea\xfd\x9c\x01\xca\x7a\xf8\xbe\x45\x1f\x69\x8b\x79\x8b\xd8\x78\xf1\x4a\x25\xba\xfe\xc4\x77\xf6\xb1\x14\xc5\xb6\x63\x87\x6c\x36\xe2\x2f\xb6\x82\x2d\x2e\xf3\xb1\x5e\x95\x18\x9a\xaf\x05\xa8\x7d\x6c\xb8\x8d\xc8\x9d\x32\xb9\x6f\x0a\x36\xf1\xb0\x62\xe7\x50\xc9\x49\xe9\x6e\x74\x95\xf3\xa2\xd5\xda\xd9\xe2\xe3\x9f\x88\xfe\x50\x5b\x75\x62\xcb\x17\xed\x9d\x8a\x95\x22\x05\x7c\x52\x54\x97\x6b\xf7\x97\xee\xfb\x85\xfd\xf9\x70\x62\x87\xdf\xf6\xf5\xdb\xaf\x13\x09\xc1\xdf\xab\xb6\xdf\x63\x84\x4a\xa4\xbb\xd7\x5c\x4a\x13\xc5\x3c\x41\x79\xbf\x36\x40\xca\xb7\x1e\x5c\x95\xd9\xdc\xd2\x1f\x82\xa3\x2a\xc2\xb8\xf1\xd5\x01\x81\x83\x70\xe9\x95\x92\xe0\xa2\x8a\x30\x2e\x7d\x19\xc6\x85\x7f\x77\xb9\x28\x4d\x27\x38\x99\xc5\x18\x37\x55\x8e\x71\xd4\x65\x1c\xf1\x56\x5f\xbb\x5e\xb3\xfb\x89\xee\xbe\xb1\x08\xe3\x05\xd4\x4b\x6c\x43\x1e\x75\xf9\xd0\x85\xdd\xb2\x72\x43\xc6\x6e\x0a\xf7\xb3\x96\x57\xba\xa8\x80\xdd\x7e\xdd\xff\xd8\x0f\xce\xc5\xf5\xa2\xa7\xd9\x65\xdb\x60\x6f\xf3\xb8\xd4\xa9\x5e\xf5\xb5\xbd\x3e\xca\xd0\x56\xa8\xa8\x5a\xd6\x25\xe4\x2b\xf7\x8b\x07\x87\xf1\x5f\xf2\xa2\xed\x57\xcf\xf9\xaf\x0e\x6f\xa2\x48\xb1\x1f\x8a\x43\xfb\xff\xce\x47\x68\x35\x65\xa9\x7c\x44\x4f\x79\xce\xb3\xf5\x7b\x9c\xea\xb8\x4f\xf4\xd9\x16\x8d\x7f\xc3\xd6\x3f\xc8\xe0\x96\xc7\xe9\xf4\x45\x1b\xdf\x53\x4b\x47\xd1\xb3\xbd\x85\x3b\xb1\xac\x17\x41\x4c\xf1\x7a\x29\xa2\x5e\x3d\x9c\x64\xa6\xa9\x94\xdf\xf8\x3b\x7f\xee\x77\xda\xa5\xc0\x4c\xda\x0d\xea\x34\xb2\xfa\x78\x77\x66\x67\xbe\xd4\xee\x5b\x64\xcb\x9b\x25\xea\x81\x57\xd3\x17\x81\xe8\x36\xf9\xa4\x2c\x22\x8d\x00\x7d\x44\x36\xe6\xc9\x14\xb4\x76\x68\x3e\x79\xcf\x5e\x85\xf4\x03\xde\x51\x39\x45\xe1\xc2\xd1\x4f\x59\xb0\x04\x9e\x5a\xe0\x9d\x6c\xe8\x5b\x89\x79\x94\xe5\x89\x87\xef\x3c\x0a\x89\x57\x9d\x7a\x82\xc7\x95\x9f\xa4\x43\xd5\x4b\x2f\x20\x47\x89\xea\x62\x18\xf4\x1d\x81\x5c\x68\xb4\x56\x7a\xa7\x48\x89\x29\xc7\xa0\xf3\x34\x2a\xff\x1a\xfb\xd6\xa5\x31\x0e\x27\xf6\x98\x16\x7f\xf2\x08\xa2\xc8\xdd\x5a\xe2\xad\x51\xb0\x5f\x88\xbc\xab\x60\x1a\x03\xe3\xa1\x50\x4b\x20\xac\xa8\x17\xce\xfc\x8e\xbf\x13\x6f\x31\x92\xf4\xdc\x77\xe0\xed\x47\xbc\xd4\xdb\x14\xc6\x22\x80\xbb\xb7\xfc\xc3\xab\x3c\x21\x4a\xd3\x9d\xfd\xb2\x3f\xfa\x26\xac\xd1\x9a\xce\x43\xca\x7d\xb7\xc2\xf8\x2e\xb0\x8f\x46\xba\xaa\x26\xd5\x24\x0b\xf6\x12\x54\x81\xe9\xfc\xf2\x06\x24\x85\xd4\xc8\x28\x02\x18\xc0\xe2\xb8\x13\x3d\x05\xec\xd9\x5c\x58\x26\x8d\xbe\xe3\x2e\x68\x45\xc0\xd6\x2d\xb0\x5b\xbc\x4b\x2b\xe4\x05\x15\xb3\x33\x78\x15\xaf\xe5\x60\x0f\x26\xe6\x27\xfe\xe0\x31\x32\xbb\x02\x01\x7f\x51\xaf\x49\x7b\x4c\xaf\x19\x66\x69\xa0\xf2\xa8\xfd\x26\xbb\x5c\x54\xd8\x0a\x98\x56\x00\x18\xec\x01\xbe\xbd\x8b\xce\xc9\xb0\xfd\x2d\xf4\xc4\x5c\x8f\xc0\x26\x07\x33\xb4\x3b\x37\x5b\x91\x7f\xef\x26\x21\xfc\x45\xac\x61\xac\xac\x2e\x7a\x59\x38\xb7\xd7\x84\xd8\xba\x6a\xf7\x8d\x35\x5d\x71\xc8\x4a\xf9\xb5\xab\x2f\xaa\x01\xd9\x19\xba\x4f\xa6\x1c\xc9\xec\x98\x19\x36\xb0\xa8\x4e\xac\x29\x3a\xc0\x4e\x7e\x7b\x87\x2f\xa6\xf0\x13\xe8\xe9\x21\x2b\xcb\xfa\x2a\xd7\x90\xaa\xc8\x59\x5c\x4e\xcf\xf5\xef\xd8\xd7\xd6\xfd\xe8\x7c\x08\x07\x73\xc2\x5d\x0e\xff\x4b\x81\xf6\xc3\x72\x76\x2c\x27\xe6\x00\x72\x2b\x19\x39\x21\x48\x53\x72\xe7\x56\x06\x62\x61\xdc\x5e\x95\x4c\xca\xc2\xde\x73\x95\x9f\x0d\xc5\xcd\x70\xdb\x03\x75\x5f\x59\x0f\x39\x82\xe9\x1d\x0f\x8b\x0a\x9c\x9d\x22\x63\xa4\xfa\x2a\xb9\xa1\xb8\xe8\xcb\x45\xb4\x4d\x42\x0c\x10\x37\x04\xde\x27\x05\xb1\x47\xba\x0d\x32\x62\x9f\x9b\xf4\x1a\x48\xec\x59\x3f\x88\xc0\x1c\x0a\x77\x2c\x6c\xc8\x41\x85\xc0\x16\xf7\x00\x07\x9c\xac\x6b\x49\xb8\x67\x03\xac\xf0\x7f\x10\x40\x25\xfb\xbb\xbd\xba\x70\x4f\x26\xbd\x1b\x58\x6a\x5a\x77\xe8\xc0\x65\x32\xa6\x1c\x36\x8a\xad\x9c\xbe\x23\x39\x9f\x96\x79\xe3\x1e\x14\xcb\xe3\xb5\x2c\xb9\xd2\xf5\x43\xc5\x73\x32\xa9\xe0\xbb\xfa\xe5\xa5\x34\xc6\x0c\x2a\x00\xa2\xdf\x83\x62\xc3\xe1\x9b\x62\x0f\x44\xd9\xcc\x42\xa7\x61\xe8\x1e\x84\x3e\xe3\x73\xe8\x95\xc5\xd7\xb2\xb0\xce\x4e\x2e\x6f\x08\x98\xa9\xb1\x43\x95\x8d\x4e\x4f\x13\x7e\x77\x01\x43\x1d\x54\xd8\xc1\x14\xf7\x1d\x38\x3e\x82\x19\xe8\xfc\xb8\xb5\xb3\xae\xfd\xfc\x7d\x76\x62\x4d\x9d\xa8\x51\x3c\xb1\x19\x0e\x8f\xf8\xcb\x1e\x11\x0b\x5b\x05\x45\x6d\x78\xab\x72\x7a\xab\x5b\x41\x50\x9b\xdc\xe2\xb5\x3c\x68\x9e\x85\xd6\xed\xb3\xb6\x68\x55\x70\x2f\xea\xf3\x68\x77\x4b\xc6\xf4\x0a\x5a\x42\xa0\x7a\x5f\x94\xec\x17\xf9\xa9\xff\x52\x65\x4d\x53\xbf\x0e\xb6\x2f\x00\xde\x8f\x08\xc3\x50\x9a\xee\x95\x17\xaf\x3b\x35\x8c\x4d\xff\xed\x9a\x35\x1d\x6b\x5a\x87\xc2\xe3\x3a\x48\xe0\xb5\x9e\x76\xa7\xa2\xc9\x5d\xe4\xcd\x66\xb6\xd9\x6c\x36\x21\x0a\xa7\xac\x3c\x3a\xb8\xeb\xa0\xe4\x75\xc5\x04\x63\x07\x77\xb9\x9c\x2d\x97\xcb\x65\x0c\x01\x59\x71\x87\xc4\x22\x58\xef\x1e\xfb\x58\x1c\xbb\x93\x8b\x1b\x6e\xf4\xd7\x5a\xe0\xba\x6d\xb6\x8a\xec\x31\x02\x7d\x13\x44\x3f\xd6\xd7\x86\xc2\x7e\x0a\x37\xfa\xf1\xd8\xb2\xce\xd6\x1a\xd3\x28\x85\x35\x46\xd1\x18\x14\xc7\xc4\x8f\x54\x1a\x49\x84\xeb\x8e\x89\x1e\xa1\x37\x02\x73\x50\x1f\x13\x3d\x56\x75\x06\x1a\x4a\x83\x4c\x2a\x11\xda\x33\x10\x10\x4a\x04\xd0\xa3\xbb\x61\xd0\x23\x13\x3f\xac\x43\xa0\x1b\x11\x0a\x61\x35\x92\x14\x4c\x6d\x32\x09\x84\x35\x69\xee\x6a\x1f\x6f\x7a\xf1\x7f\x91\xec\xe7\x90\xe9\x08\x02\x0b\xd7\x58\x0a\xc5\xe3\xff\xf7\x18\xc9\x7f\x01\xf8\x8f\xa2\xb0\xbc\xc7\xe6\x08\xae\xcb\x91\xca\xb6\xa2\x2c\xe4\xa8\xb6\x5e\x61\x03\x25\x8e\xc2\xda\x35\x73\xf3\xf1\x8d\xbd\x86\x4a\x3e\x86\xc2\xe6\x9e\xf9\x45\x70\xdd\x8c\x34\x2f\x8f\x2e\xab\x3b\x14\xfb\x11\x72\x1d\x43\xe1\x89\x9a\x87\x47\x35\xf6\x13\x66\x94\xe3\x28\x3c\xdf\xe1\x45\x48\xae\xcf\x23\xa7\x92\x79\xea\x5a\x91\x3b\x54\x7b\x9e\x42\x3b\x32\x86\xc4\xdc\x35\x64\xcf\x77\x28\xf7\x1c\x9a\xb2\x51\x24\xe6\x88\x31\x0b\x7b\x7e\x8a\xb1\x65\xc3\xa8\xf7\xe9\x9d\x03\x20\xdb\x55\x95\x2c\x5c\x8f\x55\xb9\xa7\x0e\x00\x22\xab\xeb\x92\x52\x58\x86\x72\x40\x37\x94\x42\xb0\x1d\x0b\xe5\x7a\x52\xf0\x6b\x28\x95\xf6\x17\x28\x78\xdb\x75\xb0\x5c\x4c\x0a\x6d\xb1\x76\x30\xf8\x7c\x4a\xc2\xa7\x4e\xbd\xc5\xfc\x4b\x21\xac\xb0\xd6\xf5\xa3\x6c\x20\x8a\x31\xc9\x53\x18\x4f\x56\x63\x61\x6e\xa2\xc2\x25\x86\x38\xea\x1a\x62\x38\x58\x47\x1a\xee\x20\x86\x62\xf7\xa5\xe5\x02\x62\x28\x68\x77\x3a\x6e\x1f\x86\x69\xf7\xa8\xe5\xea\xa1\x28\x78\xf3\x39\x7d\x4b\x78\x79\x84\x4b\x87\x36\x1e\x8a\x85\xf4\x30\xe1\xcd\x71\x7b\x43\x6a\x01\x66\x37\x4d\x5b\x83\x12\xa7\x90\x16\xa4\xc1\x40\x67\x23\xd3\x2d\xc3\xf8\xd0\x58\xcb\xd8\xb1\x29\xdd\xaf\x88\x4e\x5f\x05\xac\x04\xdd\x46\x2b\x8f\x32\x22\x58\x6b\x72\xd8\xa3\x33\x88\xe9\x4e\xa1\x4a\x45\x62\x6d\x62\xed\xa4\x74\x9b\x22\x86\xe1\x23\x49\x32\xa4\x48\x8f\x28\x75\x12\xeb\x29\x30\x27\xd0\x8d\xf4\xe4\x31\x40\x08\xd6\x73\xe4\x6c\xa5\xdc\x9d\x08\x93\x38\x4f\xc9\xd1\x16\x52\xa5\x01\x35\xec\xdd\x08\x57\x86\x62\x85\xbb\x23\xc0\x7d\xc1\x58\xd1\x68\x73\x7a\x70\xa7\xa8\x3e\xcd\xf1\x31\xdd\x03\x8f\x89\x0d\xb1\x9d\x96\x89\xeb\xc6\x74\xd9\xbe\x64\x1d\xed\xc6\x4c\x6c\xb7\xc6\x46\x88\x72\x6b\x26\xb4\xc3\x43\xd0\x23\x1d\x9e\x09\xee\x06\x11\x64\x28\x37\x68\x62\xbb\x45\x04\x3e\xe5\x16\x4d\x50\x5f\x89\x20\x12\xf0\x95\x6c\x5a\x6a\xb2\x25\xa8\x51\x2e\x94\x4d\x46\x4c\xbf\x14\x11\xca\xaf\xb2\x9b\x57\x4e\x93\x04\x19\x8f\xb7\xe5\x76\xb9\x9f\x14\xed\x85\x4d\x08\xe7\x8c\x20\x14\xe3\x9c\x4d\x82\xde\x9b\x24\x3e\xc6\x7b\xc3\x88\x3a\x0a\x3a\xc2\xb5\x43\xe8\x99\xaa\x3a\xc2\xe3\x43\x28\x39\x4a\x3b\xde\x1b\x24\xa8\x5a\xea\x3b\xc2\x57\x24\x08\x02\x45\x1e\xe3\x47\x12\x1d\x02\xd5\x67\x9c\x93\x49\x2a\x0e\x4d\x34\xe8\x83\x22\x34\x11\x35\xf7\x79\xa8\x13\xe0\xae\x52\xe3\x22\x34\x7f\x22\x72\xcc\x51\xee\xa4\x0b\x3b\x01\xfe\x2c\x35\x53\x04\xfd\x59\x44\x90\x05\x26\x88\xc7\xc7\x9d\x00\x87\x37\xd2\x92\x4a\x87\x17\x61\xbf\x8c\xd0\xe6\xd5\x04\x78\xc4\xfe\xb9\xc0\xe3\x11\x23\xec\x57\x9e\x41\x8a\x79\xc9\x13\xe0\x32\x53\xb6\x3b\xe8\x32\x23\x92\xac\xd1\x61\x43\xbb\xd1\x13\xe0\x53\x47\x4e\xb2\xd2\xa7\x46\xd8\x6f\x22\x8c\xdf\xe3\x04\x38\xdd\x14\xcf\xa0\xd3\x8d\xb0\x7f\x44\xd9\xd3\x8e\xf8\x04\x78\xe5\x7e\x17\xc5\xe3\x95\x23\x92\x3c\x79\xe6\x13\xcc\x53\x9f\x00\xb7\x3d\xce\xe7\x52\x6e\x3b\xc2\xfe\x39\x62\x7e\x9c\xa7\x13\xe8\xd8\x53\x76\x29\xec\xd8\x63\x96\x29\x45\x4d\x93\xc7\xdb\x9f\x40\xdf\x9f\x90\x26\xc2\xf7\xc7\xa4\x41\x0d\xa5\x6f\x41\x30\x81\xcb\x83\x48\xaf\x5a\x2f\x0f\x30\x19\x70\x1b\x69\x6e\x8d\xf2\xd8\xaf\x1e\x45\x5e\x6b\x7c\xb8\x81\x44\x12\x91\xc9\x88\xdc\x35\x04\x4f\xe1\x42\xef\x84\x5a\xe5\x71\x1b\xa1\x38\x12\xbd\x0f\x8a\xc3\x93\xdb\xa0\x38\x38\xb9\x0b\x8a\x83\x87\x36\x41\x71\x2c\x72\x0f\x94\x00\x27\xb7\x40\x71\x78\xdf\x0e\x28\xd1\x48\xf4\x06\x28\x8e\x10\xb5\xff\x29\x50\x47\x6d\x7f\xba\x28\xa1\xdd\x4f\x17\x23\xb4\xf9\xe9\x62\x44\xee\x7d\xba\x88\xa1\xad\x4f\x04\x23\xb4\xf3\xe9\xa2\x44\x6c\x7c\x22\xcd\x16\xdc\xf7\x74\x71\x9c\x6d\x4f\xa2\xef\x83\xbb\x9e\x08\x69\x7a\xd3\x93\xb0\x0d\xe1\x3d\x4f\x97\x8b\x6f\xcb\x33\x6e\x24\x6a\x67\x2f\xd4\xd5\x2b\xbf\x41\xf0\xed\x77\x92\xfa\x87\x6e\x77\x12\x43\x3c\xbc\xdb\x89\x28\x92\x67\xb3\x33\xce\x1a\x6a\x1f\x2c\x34\xe8\x1e\x29\x82\xe1\x9d\x4e\x84\xb6\x67\xa3\xd3\x6b\xf4\x7d\xfb\x9c\xa4\xa5\x41\xb7\x39\xa3\xe6\xa2\xc1\x35\x0a\x19\xbe\xde\x77\xc1\xc7\x56\xc4\x1e\x27\x32\xba\x7c\x5b\x9c\x38\xa3\x98\x1d\x4e\x97\x91\x77\x83\x33\x6e\x92\x37\x7c\x15\x77\xfc\x86\xb7\x37\x75\xc6\x37\xc7\x07\x51\x89\x1a\x68\x2f\xc4\x81\x88\xf3\x43\x28\x34\xda\x13\xa1\x30\x48\x5f\x84\x42\x20\xbd\x11\x0a\x21\xe4\x8f\x50\x78\xa4\x47\x42\x22\x90\x3e\x09\x85\xe1\xf3\x4a\xc8\x06\xa3\xfd\x12\x0a\x25\xca\x33\x51\xc8\xa3\x7c\x13\x0c\x29\xe4\x9d\x60\x38\x21\xff\x04\xc3\x89\xf4\x50\x30\xd4\x90\x8f\x82\xe2\x84\xbc\x14\x0c\x29\xc2\x4f\x41\x9b\x30\xe8\xa9\x60\x58\x8e\xaf\x42\xea\x43\xd0\x5b\x41\xc9\xd3\xfe\x0a\x69\x45\xc2\x1e\x0b\xc6\xc9\xe7\xb3\xc4\x8e\x56\xe5\xb5\x44\x74\xff\x2a\x64\x3a\x7c\x9e\x8b\x47\x33\x51\xdf\x85\x34\x05\x61\xef\x05\x55\x30\x8f\xff\x12\x6b\x41\x95\x07\x13\x31\x30\x1f\x69\xa2\x61\x2f\x06\xa5\xef\xf1\x63\x02\x53\x86\xcf\x93\xf1\xd8\x25\xd4\x97\x89\x9c\xcf\xb4\x37\x13\x61\x2c\xe7\x29\x3d\xfe\x22\x3c\x1a\x74\x04\xfa\x7c\x1a\x8a\x59\x8c\x57\x83\x31\xf3\xfa\x35\xb1\x6e\xc3\xe0\xd9\xa0\xe3\xdc\x8e\x50\x53\x40\xe1\x0d\x98\xc1\xf9\x59\xcc\x37\xb8\xf3\xf3\x5a\xe4\x4c\xe0\x78\xfc\x1f\x0c\x28\xce\x05\xf2\x60\xd2\x5e\x90\x07\x89\x74\x84\x3c\x38\xa4\x2f\xe4\xc1\x09\xb9\x43\x1e\x54\xd2\x23\xf2\xe1\x90\x4e\x91\x07\xc9\xe7\x17\xf9\x9a\x90\x76\x8d\x3c\x58\x51\xde\x91\x81\x3f\xca\x41\x22\xf0\x42\x3e\x12\x81\x16\x72\x93\x08\xb4\x48\x4f\x89\xc0\x0e\x39\x4b\x14\x5a\xc8\x5f\x22\xf0\x22\x5c\x26\xaa\x51\x83\x5e\x13\x81\xe8\x38\x4e\x3e\x6d\x09\xfa\x4e\x14\x13\xda\x7d\xf2\x19\xa1\xb0\x07\x45\xf0\xf3\x39\x51\x23\xc6\xb8\xf2\xa3\xe2\x94\x63\x15\x61\x79\x7c\xde\x94\x5f\x81\x51\x87\xca\x67\x46\xc2\x3e\x15\xa5\x84\x1e\xb7\x6a\x84\x3d\x56\x9e\x55\xdc\x70\x7e\xf4\x92\x0e\xfb\x57\x14\x17\x8f\x8b\x15\x9e\x8f\x7c\x5e\x96\xdf\xb8\xa1\x8e\x56\xfc\xac\xa9\x7d\xad\x38\xd3\x3b\x4f\xbd\xa3\x36\xc2\xe3\xa2\xc6\xad\xcf\xe9\xf2\xb0\x8c\xf1\xbb\x08\x96\x5e\xd7\x6b\x84\xc7\x32\x78\x5f\x94\x8d\x88\xd8\x5c\x5a\xa5\x44\xac\x7f\xef\x3f\x9d\x72\x8f\x6f\x65\x03\xc4\xf9\x55\x04\x16\xed\x53\x11\x08\xa4\x3f\x45\xc0\x93\xbe\x14\x01\x1f\xf2\xa3\x08\x34\xd2\x87\xa2\xe0\x49\xff\x89\x40\xf0\xf9\x4e\x54\x53\xd1\x7e\x13\x81\x11\xe5\x33\x49\xdc\x51\xfe\x12\x82\x13\xf2\x95\x10\x94\x90\x9f\x84\xa0\x44\xfa\x48\x08\x66\xc8\x3f\xc2\x50\x42\xbe\x11\x82\x13\xe1\x17\x61\x8d\x17\xf4\x89\x10\x24\xc7\x1f\xa2\xb4\x20\xe8\x0b\x61\xc4\x69\x3f\x88\x32\x18\x61\x1f\x08\xe1\xe3\xf3\x7f\x22\xc7\xa6\xf2\x7d\xc2\x9d\xbe\x0a\x58\x09\x9f\xcf\x43\x2b\x23\xea\xef\x50\xc3\x3e\xec\xeb\x60\x4a\xe5\xf1\x73\x22\xed\xa4\xf2\x71\xc2\xc3\xf0\x91\x24\x19\xf6\x6d\x30\xea\x1e\xbf\xc6\x3f\x27\xf8\x7c\x1a\xda\x00\xa1\xfe\x4c\xdc\x6c\xa5\x7d\x99\xb0\x49\x9c\xa7\xe4\x68\x8b\xf0\x61\xb0\xf1\xe6\xf3\x5f\x08\x56\x31\xbe\x0b\xc2\xca\xeb\xb7\x44\x7a\x03\x83\xcf\x82\x8d\x69\xee\xaf\xa8\x1d\x23\x50\x34\x15\x19\x35\xe0\x03\x13\xd6\x47\xf1\xdc\x05\xcc\xbc\x81\x64\xec\x51\xf9\x99\x6c\xc8\x40\x8e\x28\x91\xcc\x5f\xbd\xff\x26\x90\x1f\xc0\xf6\x96\xca\xfb\x43\x26\xfd\x31\x60\x5f\xb2\x4b\xc9\x5a\x58\xc7\x14\xd6\x2e\x35\xeb\x95\x62\xd8\xea\xae\xa7\xa4\xb2\x4d\x75\xfe\x91\xd4\x4c\xa9\xe3\x22\xc6\xe6\xc3\x42\x30\xc9\xf6\x84\x12\xca\x9b\x1c\xf0\xcd\x1e\xb3\xfc\x5a\x76\x45\x59\x54\xe2\x76\x88\x99\x03\xce\x00\xfa\xa6\x5b\xd4\xcd\x6a\x05\x01\xb3\xa6\xc8\xf6\x25\xbb\x4d\xa7\xe2\xeb\x7f\x9f\x5d\xb6\x29\xd4\x0e\xde\xc4\xbc\x13\xa7\xf3\xe4\x8f\xc9\xb7\xac\xf9\x62\x40\x3f\x3c\xc0\xc6\xf7\x00\xa2\x9c\x13\xd5\x15\x20\xd5\x94\x8d\x6b\x65\xad\xb5\x8b\x51\xca\xfd\xef\x29\xac\x98\xdd\x37\x26\xe8\xdc\x6a\x83\x85\xd3\x93\x26\xf4\xc2\x82\xf6\x02\x2f\xb1\xe6\x25\xa1\x57\x00\x7a\xee\x03\x5d\x43\xd0\x80\xcc\x1b\x0b\xda\x0b\xfc\x68\x01\xfb\x65\x7e\x02\xd0\x0b\x91\x2e\xa8\xd7\x63\x5f\x1a\xbb\x51\x09\x82\x8c\xe7\xd5\xfa\x5f\xa5\x85\x10\x5c\x7a\x09\xb2\xea\xc0\xda\xae\x6e\x3e\x66\xfc\x6c\x6a\x11\x56\xd0\x41\x09\x98\x08\x1b\xcf\x24\x0e\xcd\x8f\x82\x10\xb9\xbe\x6e\x76\x8a\x24\x55\xac\x52\xe5\x09\x83\x90\x17\x0d\x13\x8f\x05\x8b\xfe\x70\xe1\x7e\x81\xac\xe3\x4c\x9a\x21\xd7\x88\x2b\x65\x3d\x23\x1d\x46\x2a\xa9\x43\xcb\xa6\x44\x09\xa6\x3c\x51\x80\xe1\xe4\x24\x0a\x92\xc8\x22\xa2\x8a\xc3\x99\x3f\x14\x64\x38\x45\x87\x82\x24\x72\x69\xa8\xe2\x70\xfe\x0b\x05\x19\x4e\x54\xa1\x20\x89\x8c\x12\xba\x5d\xc3\x59\x20\x34\x68\x38\x5b\x83\x06\x25\xb2\x2a\x88\xd4\x64\x91\x0f\x91\xdb\x9a\xea\x4f\x61\xa9\xb2\x9e\xc9\xd7\x16\x87\x34\x6a\x5b\x9e\xa3\xaf\x2f\xec\x25\xe3\x89\x2c\x89\x0c\x7b\x56\x62\x59\x80\x92\x64\x42\x4f\xf7\xd7\xae\xab\xab\x87\x89\x55\xda\x76\x4d\x5d\xbd\xc8\x2c\xa8\x3a\x31\x28\x84\x99\x75\x45\x57\xda\xaf\xb6\xd8\x30\xed\x75\x6f\x82\x59\x39\xe8\x9f\x1f\x48\x84\x80\x80\x03\x1c\x10\x55\x89\x11\x17\xab\x6d\x91\x0c\xbe\xe8\xfa\xee\x48\x0b\x9e\x25\xc4\xcb\x8c\xe7\xac\xad\xda\x3f\xba\xb5\x27\x5e\x8d\xa4\xa1\xd4\xf3\x06\x56\xe7\x52\x0f\x5b\x7a\xc0\xe8\x14\x85\x8b\xfe\xc7\xaf\x4d\x2a\x21\x2a\x00\x1a\xd2\xf7\x3f\x13\xf0\xb8\xf4\x68\x86\x53\xfd\x60\x1f\x4a\x6a\x36\xa4\xab\x44\xa9\xcd\xcc\xc4\x8f\xe1\x9a\xcc\x9c\x1c\xfd\x21\xa2\xde\x87\xde\xe1\x53\x4d\x5e\x7e\xb0\xd6\x24\x5b\x0c\x38\x4e\xd2\x48\x06\x28\x34\xa9\x22\xb2\xbf\x61\x4a\x47\xf9\xd1\x7c\x0e\x01\x30\x13\xf5\x28\x73\x93\x5e\x71\xce\x5e\xd8\xb6\x77\xf7\xb3\x66\xfa\xd2\x64\x79\xc1\xaa\xee\xcb\x7c\x35\xcf\xd9\xcb\xe4\x0f\xec\x89\x2d\xd9\x2a\x49\x27\x3d\xb5\xe4\x71\xfe\xb3\xf8\xa5\x37\xc5\x0f\x71\x89\x6a\x50\x01\xc8\x91\xff\x01\x69\x34\xa7\x7d\x99\x89\x24\xd3\x1f\xe0\x94\xa6\x69\xcf\x46\x34\xa8\xe0\x34\x7f\x9a\x6f\xe6\x1b\xc9\xcc\xe2\x46\x77\x10\xd6\x17\x1c\x85\xb4\xb6\xa2\xd4\x3f\x1d\x08\x18\x38\x1d\x20\x2c\xd0\xb9\x60\xb1\x5e\x4f\xd4\xff\xc0\x74\x60\xe1\x04\x04\xa4\xa6\x83\x5e\x8c\x71\x73\x81\xa4\xe7\x9f\x0b\xa4\xe9\x70\xa4\x45\xa7\x03\x58\x66\x4f\x07\xa0\x01\x1e\xdd\x06\x08\xcc\x08\x2e\x94\x6d\x06\x64\xff\x86\x66\x04\x04\x8c\x1e\xee\x69\xea\x51\x25\x6b\x2e\xe8\x3d\x11\x6c\x22\x00\xc0\xb8\xd0\xb1\x13\x81\x01\x8d\x4e\x04\x56\xb9\x3d\x11\x50\x75\xf0\xcc\x02\x04\xc5\x3b\x66\x01\x94\x1f\x65\xa4\x23\x80\xe3\x24\x8d\x64\x30\x6e\x16\x70\xb3\x3a\x7b\xbc\x50\x60\x17\x3f\xcf\x14\x6a\xfa\x25\x4f\xf4\x1d\x7a\x2e\x74\xb1\x5c\x59\x28\xa4\xa1\x11\xa5\x7e\x4b\x28\x60\xa0\x25\x44\x58\xa0\x96\x70\xb9\x9a\xac\xe7\x93\xcd\x13\x34\x83\x16\x42\x40\x3a\xca\x0c\xf6\x32\x8c\x33\x83\x92\x5e\xc0\x25\x56\xaf\x19\xe2\x58\xd0\x0c\xc2\x32\xdb\x0c\x0e\xb5\x7f\x74\x6b\x1f\xb0\x81\x2e\x94\x3d\x08\x64\xcf\x86\x6c\x20\x02\x46\x2a\x3b\x7b\xea\x7f\x3c\x7a\x64\x99\xc1\xc5\x72\x85\x9a\x41\x00\x8c\xcb\x1d\x6b\x06\x0d\x68\xd4\x0c\x5a\xe5\xb6\x19\xa4\xea\xe0\x31\x83\x04\xc5\x3b\xcc\x20\xca\x8f\xb2\x52\x11\xc0\x71\x92\x46\x32\x18\x67\x06\xfb\x9e\x86\x66\xb0\xff\x62\xbd\xd6\x05\x38\x8d\x37\x83\xf9\x31\x7f\xca\x9f\xb9\xef\xc9\x09\x7e\xc8\x19\x06\x32\xdc\xe9\xa2\x86\x04\xd2\xcc\xf2\xac\xf9\xb0\x3b\xcc\xe6\xf9\x62\xdd\xf3\x5a\x2c\x57\x82\xd1\xe2\x71\xf9\xb4\x7e\x72\xdc\xe1\x9e\x19\xd1\x43\x44\x7f\xf4\x18\xa4\x91\xe5\x85\xfe\x19\x80\x83\x58\xae\x30\xc6\x02\x77\x86\x57\xeb\x89\xfa\x1f\x98\x05\x20\x8a\x5f\x3e\xd2\x15\x16\x62\x8c\x9b\x06\x04\x45\xff\x2c\xd0\xdb\x0d\x5b\x54\x74\x06\x00\x45\x8e\x1f\x6c\xd6\xfd\xd1\xa9\x7b\x60\x0a\x70\x80\xec\xf1\x2f\xfa\x35\x34\x01\xb8\x50\xe4\x28\x9f\x67\x8b\xcd\x72\xe9\x55\x23\xdb\x11\x16\x9e\x07\x36\x09\x98\xe0\xa8\xe4\xb1\x53\xc0\x00\x8c\xce\x00\xb0\xd8\xf1\x83\xc9\x4a\x78\xa6\x00\x9c\xe4\x1d\x33\x00\xc6\x8d\xb2\xcf\x61\xd8\x28\x31\xe3\xc8\x8f\x74\x82\xb1\x07\x3d\x3c\x4e\xa7\x69\x0f\x3f\xcf\x04\x6a\xf2\x97\xa6\x38\x67\xcd\x77\x6c\xd8\xae\xf7\xd9\xd3\x1c\x5d\xc7\x49\x24\xd2\xce\xa8\x72\xbf\x29\x54\x50\x9e\x8d\x01\x0d\x32\x6a\x6b\xc0\xc1\x0a\x0a\xfa\x79\xdb\x03\x9a\x62\xc0\x26\xf2\xc6\x7d\x47\x64\x46\x2d\xa3\x5d\x1a\xbd\x49\x80\x21\x62\x86\x0d\x83\xb3\x87\x88\xee\xf5\x90\x95\x44\x01\x69\x77\x68\x9e\xad\x1f\x17\x5e\x3d\x8b\xdc\x31\xb0\xc0\x29\xf9\x63\x6d\x25\x80\x47\xcd\xa5\x03\xe1\xdd\x39\xa0\xe8\x79\xe5\xfc\xa0\xd1\x24\x78\x52\x86\x2d\x0a\x3c\x56\xde\x68\x26\x9f\xb8\x8b\x20\xc7\x95\xcd\x6b\xbc\x01\x9d\xaf\x9e\x9f\x56\x47\x6e\x40\x39\x49\x69\x43\x97\xf9\x3a\xbb\xcb\x87\xb6\x04\xb9\xd3\xb3\x8d\x90\xca\xf0\xda\xab\x8f\xef\x2b\x3f\xce\xd9\xbc\x67\x27\x9e\x5f\x92\xec\x8e\xeb\xb9\xf6\xdb\x07\x7e\x45\x75\xac\x15\xbf\x09\x2a\xc5\xa7\x32\x06\x1c\xe8\x57\xa4\xb0\x81\xd8\x63\x78\x36\x4a\xaa\x90\x0f\xcf\x41\x3c\xb3\x96\x28\x1f\x35\x65\x41\x14\xbf\x70\x9f\x37\x59\x09\x72\xfe\x99\x4a\x3e\x0b\x68\x8b\x4a\x6c\xe1\x54\x77\x6c\x64\x3b\x58\xd8\x9c\xe2\x00\xb9\x0b\xf8\x2a\xc2\x81\x77\xa1\x3c\x9b\xd8\xeb\xd5\x71\x4f\x2b\x50\xe4\xa4\x64\xc2\xa2\x32\xc7\xef\xde\x54\x3e\xd7\x1d\x16\x7b\x27\x22\x94\x12\x2d\xdb\x07\xa7\x20\x8c\x1b\xbd\xaf\x12\x82\x8d\x12\x33\x8e\xfc\x27\x4e\x3b\xea\xed\x4c\xd3\x16\x8e\xb3\x49\x3d\x06\x39\xec\x79\xa1\xdf\x26\x71\x10\x8f\x4d\x12\xe5\xa3\x6c\x12\x44\xf1\x0b\xf7\x79\x36\x49\x90\x1b\x69\x93\x00\x12\xb4\x49\xa0\x28\xda\x26\x39\x58\x98\x31\x71\x80\x6c\xe5\x14\x9d\x1a\xb2\x49\x2e\xd4\x3d\x36\x49\x2a\x40\x94\x4d\x32\x61\x51\x99\x63\x6d\xd2\x00\x8c\xda\x24\x58\xec\xb5\x49\x28\x25\x5a\xb6\x0f\xda\x24\x8c\x1b\x65\x34\xc2\xb0\x51\x62\xc6\x91\xff\x7c\x9b\x34\xca\x4b\x35\x7d\xb8\x1f\xe7\x33\x6a\x76\xed\xf5\x70\x60\x6d\xfb\x41\x8e\x8b\xf5\x73\x3a\xdf\x73\xa7\x98\xed\xd3\xe5\xb3\xe4\x98\x1f\xb2\xf5\xda\xf1\x52\x25\x4b\x6c\x1d\xca\x91\xd1\xb1\x25\x91\x48\x13\xa8\xca\xfd\x26\x5a\x41\x79\xac\xb4\x06\x19\x65\xa8\x1d\xac\xa0\xa0\x9f\x67\xae\x35\xc5\xc0\x7e\x07\x6f\x5c\xb7\x1f\x08\xa3\x6d\x97\x46\xdb\x6d\x0c\x11\xb3\xb9\x18\x9c\x3d\x8c\x75\xaf\x87\x0c\x38\x0a\x48\xef\x77\x3c\x3f\x1f\x96\xf8\x7e\xc7\xa0\x21\x51\x66\xdc\x02\xa7\xe4\x8f\x35\xe6\x00\x1e\xb5\xe7\x0e\x84\xd7\xa4\x53\xf4\xbc\x72\x7e\xd0\xb0\x13\x3c\x29\xe3\x1b\x05\x1e\x2b\x6f\x34\x93\xcf\xdc\xef\x10\xe3\x8a\xb2\xa8\x9f\x6a\x44\x35\x93\xd7\xac\xa9\x8a\xea\x05\x93\x35\x7b\x62\x8b\x25\x1e\xd2\x27\x90\xe8\xb0\x5d\x59\x1e\x88\x2c\x96\x50\x1e\x1b\xaa\x41\x46\xd9\x50\x07\x2b\x28\xe8\xe7\xd9\x50\x4d\x31\x10\x4d\xc1\x1b\xf7\x1d\x91\x19\x8f\x32\xb6\x4a\xa3\x6d\x28\x86\x88\x99\x3d\x0c\xce\x89\x31\x55\xbd\x1e\x0c\x38\xc6\x00\xe9\x31\xf1\xfc\x34\xa7\x42\x47\xb5\x86\x44\xd9\x50\x0b\x9c\x92\x3f\x3a\xe4\xd8\x84\x47\x6d\xa8\x03\xe1\xb5\xa1\x14\x3d\xaf\x9c\x1f\xb4\xa1\x04\x4f\x32\x30\x38\x06\x3c\x56\xde\x68\x26\x9f\x68\x43\xe5\xb8\xb2\x79\x8d\xb7\xa1\x2c\x5b\xe5\x22\xfc\x4c\x90\x54\x31\x0e\xfb\xc3\xf2\xe9\xae\x20\x64\x28\xc8\xbd\x61\xc8\x61\xa9\x34\xc7\x3c\xab\x5e\x58\xf3\x41\x86\x59\x36\x3f\x2e\xf8\x54\x72\x78\x5a\xa5\xea\xf8\x31\x5f\x6f\xd6\xab\x39\x12\x81\xd1\x73\x44\xba\x4c\xe0\xa2\x43\x5c\xe0\x78\xa2\x1c\x78\x71\x28\x0e\x83\x03\x79\xe6\x11\x05\x31\x6a\x1a\xb1\x91\x42\x42\x7e\xde\x24\xa2\x08\xfa\xe7\x10\xd1\xaa\x4e\xfb\x93\x01\x19\xa0\x30\x7a\x06\x41\xf0\x30\x9b\x8f\x80\xb9\xc7\xf2\xa2\xab\xc3\x81\x19\x2e\x1c\x69\x0d\xf6\xab\x65\xb6\xc0\xb7\xe1\xb4\x5a\x44\x4d\x1e\x10\x9a\x90\x3d\x3e\x34\x63\x00\x47\x67\x0e\x1b\xc0\x3b\x71\x10\xd4\x7c\x32\x7e\x70\xda\xc0\x39\xd2\x21\x14\x61\xe8\x48\x61\x63\x59\x7c\xe2\x94\x21\x87\x11\x61\x37\x3f\xd5\x54\x0e\xae\xfd\x39\x2b\xcb\x84\xff\x39\xdd\xd7\xf9\x77\x7d\x41\x1c\xdc\x4b\xd5\x17\xc3\xbb\x7a\xb8\xd2\xac\x48\xf0\x4c\x09\x4c\xc4\x2e\x6a\x3a\x43\x83\x9d\xb2\xf2\xe8\x14\x23\x37\xe6\x77\xf0\xca\xaa\x97\xfa\x2f\xb3\x43\x5d\x75\x59\x51\x99\x1d\x89\x32\x32\x20\x6f\xe4\xb5\xe7\x77\x84\xc6\xcd\xb8\x0a\xbd\x4e\xbf\x9d\x30\x89\x4c\x98\x79\xaa\x81\xa6\xdf\x8a\x9c\xd5\x37\x95\x78\x60\x27\xb3\x27\x5c\xea\xb6\xe0\x17\x31\xb3\x7d\x5b\x97\xd7\x8e\xed\x54\x22\x05\x9e\x41\x61\xd7\xab\xcc\xb1\xac\x5f\xb7\xa7\x22\xcf\xd5\x55\x4c\x41\x2b\x11\x14\x55\x5a\x93\x1d\xe4\x2b\xfe\x1e\x2e\x88\x22\x9c\x7a\x0e\x3d\x62\xd7\x64\x55\x7b\xac\x9b\xf3\x96\xff\x56\x66\x1d\x5b\xe6\x5f\xa6\xeb\xf4\xe7\x09\xff\x4f\xfa\xf0\x3e\x2b\xaa\xcb\xb5\x9b\x48\x9b\x37\x23\xa2\x48\xbe\x42\xdb\xde\xb1\xb7\x2e\x6b\x58\x76\xd3\xac\x1b\x56\x66\xfd\x60\x30\xab\xc1\xc7\x4b\xcf\x57\xde\xb5\xd6\xd6\x4f\xfa\x49\x53\x31\xa1\xe9\xb4\x13\x86\xb6\x45\xbb\x38\xb2\xf1\x95\x32\x89\xd4\x60\x26\xf1\x44\x4e\x9b\x37\x57\xdf\x6c\x90\xc8\x4b\xe6\x63\xee\x6a\x2b\x25\xea\x31\xae\x67\xcf\xc0\x7b\xb6\x87\xdd\x33\x18\x74\x65\xd6\xbc\x30\xdf\xb8\x7d\x72\x86\xed\x93\x26\xa0\xdb\x19\x5c\x17\xa6\xd2\x82\x8c\x6a\x19\xa1\xd2\xb2\xd3\x24\xee\xb1\xae\x3b\x31\x4c\xa7\x27\x96\xe5\xc6\x38\x4c\xc1\x38\x4c\xdf\x8d\xfa\x50\x83\x75\x48\x22\xb2\x6c\xd8\x39\xf1\xa8\x87\xfb\x42\x41\x2b\x6e\x42\x0f\xed\xaf\x6f\xfb\x3f\x1b\xb4\x4c\x30\xde\xcc\x1a\x8a\x37\x61\xa2\x2b\xd7\xd7\xcb\x17\x8d\x87\x08\x9a\x6c\x38\x07\xa9\x81\xc7\xba\xea\xa6\xaf\x62\x1c\x3f\xa6\xe9\x6e\x5f\xf7\xd5\xcc\xf2\xbe\x65\x92\xc5\xe5\x2d\x49\x93\x34\x11\x93\xe3\x62\x31\x51\xff\x9b\x2d\x1e\xe4\x1c\xb2\x9d\x5f\xde\x92\xb6\x2e\x8b\x3c\x31\x86\xd5\xae\x1f\x8c\xd3\x9c\x1d\xea\x26\xe3\x43\x51\x8c\x01\xc1\x93\x1b\xb9\xde\xd2\xb0\x7c\xa2\xfa\x52\x4c\x56\x21\x2c\xe5\x1c\x0d\x5f\x8e\xf5\xe1\xda\x1a\x74\x20\xc4\x96\x17\xdf\xea\x6b\xd7\xcf\x53\xdb\x31\xb5\x0b\x89\x52\x54\xdf\x58\xd3\xb1\xbc\xff\x5d\xd2\xcf\x6f\x06\x79\x7e\x61\xde\xbe\xbb\x6e\xa2\xf3\xcc\x2e\x2a\x53\xc3\x94\xcf\x45\xdb\x73\x91\xe7\x25\x60\x73\xa8\xcf\x97\xec\x60\xa4\x84\x58\xac\xd9\x39\x99\x3d\xae\x75\x5a\x8b\xed\x54\x7c\x4b\x11\xb4\xd9\xe5\x5a\x96\x62\x3c\xc0\xc1\x31\x9d\x0f\x2a\x20\x26\xf7\xbe\x2f\x79\xba\x1d\xd9\xad\xa0\xad\xec\xca\xeb\x4b\xa4\x6e\x87\xe8\x22\xab\x67\x74\xd9\x96\xc0\x91\x7d\x05\x3d\x13\xb6\xe9\x7f\xe2\xbb\xcd\x11\x12\xa5\x87\x56\xc5\xd2\xc8\x41\xae\x78\x3f\xca\x43\x9d\xaa\xb4\xf8\x4e\xde\x3d\x47\x69\x19\xea\x66\x72\xcf\xf7\xfd\x8f\x17\x83\x6b\x9e\x4a\xef\x71\x73\x9c\xc0\x20\x2e\xd5\xa7\x36\x1c\xd5\x96\x26\x9c\xe8\x6f\x3f\x08\xd1\xf4\xa6\xa1\x41\xf5\x65\x44\x95\x3c\x1a\xac\xc5\xa0\x3a\x29\x56\x0e\x8f\x5e\x10\x66\xc4\xa0\x65\x2d\x4c\xd6\x0f\x3b\xf4\xfb\xb3\xab\xfb\x14\xfd\x50\x4f\x52\x38\xbe\x5e\xc5\x70\x3c\x3d\x8c\x82\x8f\xee\x6d\x78\xb7\x5b\xdd\xb3\x1c\x51\x23\x4f\xe7\xa3\x12\x52\x8a\xe0\x2c\x1e\x23\x04\xf5\xd9\x57\x7d\x45\xd4\x15\x50\x17\x21\x3d\xc8\xcb\x10\xfb\x2a\xbe\x63\xf6\x35\x1d\x33\xe3\x3b\x12\xba\xc4\xd0\x4a\x20\x7a\x23\x24\x22\x6f\x98\x3c\xf6\x3f\x76\x1b\x12\xd4\xa9\xea\x92\x96\x95\x22\x14\x6d\x56\x1d\x0c\x9f\x59\x75\xb5\x12\x45\xa7\x7a\x33\x62\x0c\x3a\x70\xee\xb8\x73\x41\xc6\x8f\xb5\xe1\xe6\x7b\x64\x95\x3c\xba\xfb\x01\xcb\x6a\xca\x41\x74\x64\xa4\x4d\x05\x9b\x7c\xd0\xac\x3a\xbb\xa0\x91\x5c\x42\x3d\x39\xc2\xb2\x7a\x71\x3c\x3d\xfc\x39\x96\xf5\x68\x05\xf3\x8d\xa8\x8b\xa7\xdb\xc7\xdb\x54\xd0\x11\x8e\x59\x85\x52\xfa\x0c\xaa\xbe\xe8\xe9\x4a\xa7\x8b\x90\x8e\xe3\x65\x88\x41\x15\xdf\x95\x41\x1d\xb7\x60\xa2\xed\x8a\xbc\xb8\x1f\x03\x45\x28\x8d\x90\x2b\xde\x61\xf5\x50\xa7\x2a\x4d\x9a\x55\x71\x2d\x1c\xa5\x15\x6d\x59\x1d\x0c\xaf\xc3\x2a\x2f\xed\x05\xd0\xa9\x6e\x8d\x18\x83\x0e\x9c\x3b\xee\x5c\x90\xd1\x63\x4d\x34\x83\x7d\x9f\x32\x20\xad\x47\x8f\x3f\x60\x5c\xa1\x28\x9e\xfe\x89\x34\xb1\x43\x6e\x03\x68\x5f\x61\xc6\x87\x48\xfa\xa1\xce\x1c\x61\x5c\xbd\x38\x9e\x4e\xfe\x1c\xe3\x6a\x5c\xc2\xe6\x17\x22\x47\xd4\xc5\xd3\xed\xe3\x8d\xeb\xd0\x0b\x8e\x65\x85\x22\xfa\x2c\xab\xba\xc5\xe9\x4a\xa6\x4a\x90\x3e\xeb\x8b\x10\xb3\xca\x3f\x63\x6e\xea\x7c\x3e\xcf\x16\x8b\xfb\x3c\x55\x71\x13\x1e\x21\x87\xd5\x02\xd1\x15\x2e\x14\x19\xf2\xb6\x5f\xa5\x6b\xfb\xce\x2b\x4d\x9e\xa8\x32\x69\x53\xc5\x55\x6b\x8c\x52\xb4\x49\xb5\x11\x7c\x16\xd5\xd2\x46\x0c\x95\xe8\xcc\x88\x31\x67\x83\xb9\xc3\xcc\x81\x18\x3d\xb2\xa4\x9e\xc4\x57\x87\xd6\xda\x0f\x58\x51\x28\x05\xad\x0d\xb1\x7e\xaa\x99\x1f\xc0\xf2\x53\xed\xb4\x09\x71\x4c\x02\x1d\x39\xc2\x90\xfa\x50\xe8\x0e\xfe\x24\x1f\x15\x5c\x2d\x77\xe7\xcd\x50\x75\xe8\xbe\xbf\xc3\x4f\x35\x3b\xc2\xf5\x53\x11\x49\x7d\x36\xd5\xb8\x52\xe9\x0a\x69\x14\x22\x7d\x28\x4b\x11\xe3\xaa\x4a\x50\xfb\x9a\x3f\x1d\x37\xcb\xfb\xec\xab\xbe\x67\x8f\x50\x24\x2a\x85\x28\x92\x92\x8e\x8e\x2d\x3e\x1c\x9f\x53\x7b\xa0\xf9\x98\xd0\x2d\x40\x9a\x5b\x71\x61\x9b\xa0\x17\x6d\x71\x11\x1c\xaf\xd1\x95\x17\x7b\x83\x04\xe8\xde\x8e\x18\xa8\x08\xa4\x3b\x3e\x31\xa0\xf1\x36\x58\xe8\xd2\xd8\xda\x79\x15\xfd\x23\xc6\x18\x88\xe3\xd5\x98\x1f\xba\x6f\x10\xe0\x13\xee\xe0\x11\x56\x39\x80\xe5\xed\xf8\x1f\xbd\x7f\x10\x51\x23\xaf\x2a\xfc\x2d\xf7\x10\x2a\xc2\x89\x53\x25\xe8\xea\xa4\xc2\x3c\x5d\xfe\x19\xdf\x90\x5d\xed\xd9\xfc\x3e\x4b\x2c\xee\x8b\x23\xe4\xb0\x5a\xa0\xab\xa2\xca\xe3\xe9\x1e\x1f\x57\xce\xfe\x01\x4d\x9e\xa8\xb2\x67\x53\x76\xbd\x3a\xee\x31\x4a\x23\x36\x0f\xaa\x68\x4f\x57\x5d\x6b\xf5\x63\x13\xfd\x19\x31\x02\x6d\x30\x6c\x4d\x59\x7d\x78\x47\x96\xab\xca\xa8\x1a\xd1\xba\xfb\xa1\x2d\x59\x53\x10\x5a\x27\x7e\xa8\x7d\xf5\x31\x09\xf4\xe5\xa8\x8d\x03\x1a\x85\xee\xe3\x1f\x6d\x53\x43\x15\xa1\x7b\xfd\x6f\x67\x4d\xd5\x85\x4c\x57\x36\x55\x82\xf4\x58\x5f\x84\x58\x53\xfe\xf9\xb3\xad\xa9\xb8\xe9\x1e\x30\x77\x4a\x56\x44\x55\xb8\x50\x1f\xb4\xa6\xfe\x46\x1a\x63\x4d\x15\xa5\x68\x6b\x6a\x23\x8c\xb3\xa6\x18\x36\xd1\x9f\x11\xa3\xce\x06\x73\x47\x9a\x03\xf1\xe9\xd6\x14\x13\x95\xd6\xdd\x1f\x68\x4d\x15\x8b\x1f\x6a\x4d\x7d\x4c\x02\x7d\x39\xc2\x9a\xfa\x50\xe8\x3e\xfe\xd1\xd6\x34\x54\x11\xba\xd7\xff\x76\xd6\xd4\xb8\x1d\xe9\x8a\x67\x14\x22\xfd\x26\x4b\x11\xb3\xaa\x4a\x30\xcb\xba\x58\x3e\x3d\x2d\x0e\xf7\x59\x56\x7d\x53\x1d\xa1\x48\x54\x0a\x51\x1e\x25\x1d\x65\x62\x97\xcb\xc3\x6a\x65\xef\x18\x78\x99\xd0\x2d\x40\xef\x18\xf0\x2b\xcf\x04\xbd\x68\x5b\x8b\xe0\xf8\xcc\xad\xba\x1a\x1b\x24\x40\xf7\x76\xc4\xe0\x44\x20\xdd\x31\x89\x01\xdd\x71\x1e\xc2\x75\x69\x6c\xed\xbc\x8a\xfe\x01\x03\x6c\x89\xe3\xd3\x98\x1f\x6a\x83\x03\x7c\xc2\x1d\x3c\xc2\x12\x07\xb0\xbc\x1d\xff\xa3\xed\x71\x44\x8d\xbc\xaa\xf0\xb7\xb3\xca\xc6\x35\x47\x24\xd2\x6c\x28\xc4\x82\xf1\x44\x29\x16\x2c\x2b\x4b\xd0\x70\xd9\xf5\xe3\x2a\x5d\xdf\x19\x2e\xab\xee\xbe\x23\x14\x89\x4a\x61\x01\x81\x52\x3a\x32\x06\x61\xff\xbc\x5f\x1e\xec\x68\x49\x1f\x13\xba\x05\xe8\xd8\x59\x7e\x89\x9a\xa0\x17\x1f\x3d\xeb\xe2\xf8\xac\xb2\xba\x6c\x1b\x24\x40\xf7\x76\xc4\x40\x45\x20\x91\x30\x4b\x04\x68\x7c\x28\xad\xd0\xa5\xb1\xb5\xf3\x2a\xfa\x47\x22\x6a\x81\x38\x5e\x8d\xf9\xa1\x56\x39\xc0\x27\xdc\xc1\x63\xa2\x6b\xfd\x58\xde\x8e\xff\xd1\x56\x39\xa2\x46\x5e\x55\xf8\xdb\x59\xe5\xe1\x4a\x23\x76\x02\xa8\xca\xd0\xf3\xd1\xbe\x10\x8d\x5b\xe0\x05\x98\x45\xce\xd2\xe5\x72\xf1\x7c\x6f\xe4\x82\xb8\x41\x8e\x10\xc4\xeb\x83\x1e\xd0\x72\xd1\x28\x73\x7c\x38\xae\x17\xab\xcd\x2e\x9e\x05\x59\x79\xd2\x18\x8b\x3b\xc9\x38\xb5\x11\x51\x0c\x36\x8a\xcf\x14\xab\x4b\xac\x21\x7c\xb2\x8f\x23\xc6\xa6\x0b\x88\x9d\x77\x3b\x30\xa3\x47\xa0\x54\xa0\x91\x35\xf3\x69\xf6\x07\x8c\x30\x14\xc6\xa7\x27\x3f\xd4\x06\xfb\xd9\x04\x7b\x76\x54\x7c\x83\x0f\xc9\xd7\xe3\x3f\xda\xfe\x86\xab\xe3\xd3\x81\xbf\x8d\xf5\x4d\x66\xc5\x41\x48\xd2\xb1\xb7\x6e\x7b\x2c\x1a\x75\x77\xd3\xb8\xc6\x39\x09\x03\xdb\x17\x3f\x09\x94\x01\x42\x60\x18\x24\x1e\xbc\xaf\xca\xbf\xcf\xf6\x0d\xcb\xf2\x43\x73\x3d\xef\xf5\x7b\xcd\xfa\x6a\xe6\x50\x96\x64\xe8\x8d\xc5\x21\xa3\xc2\x23\x84\xf6\xdc\x72\xdc\x19\x79\x13\x0c\x14\x3a\xb9\x82\x7c\x9e\x5b\x3d\xaa\x3e\x33\x1f\xd7\x17\x17\xdb\x5b\x56\x1e\xd5\xbd\x76\x75\xaf\xd6\xfc\xc6\xc5\x10\xf7\x0e\xad\xf7\xe2\x4d\xa2\xe7\xa2\x2a\xce\xd7\xb3\x79\x61\x56\x5f\xcf\xd6\x37\xae\xa7\xe7\xfa\xf7\x69\x76\xb9\xb0\xac\xc9\xaa\x03\x13\x35\x9a\xbe\xb2\xfd\x6f\x45\xe7\x7c\x47\xae\xdd\x3b\x57\x49\xff\xb0\xdf\x1f\x56\xf9\x5c\x69\x59\x93\xe5\xc5\xb5\xdd\x2e\x2e\x6f\xfa\x86\xbe\xb8\x40\x39\x15\x8f\x0c\xd7\x55\x37\x6d\x8b\xdf\x19\x7f\x43\xdd\xb9\x44\x2c\xae\xee\x76\x59\xd3\xed\x38\x8e\xba\xb5\x3e\x5b\xef\xac\xfb\x97\x5d\x7d\xd9\xe1\x71\xd3\x6a\x3b\x16\xbd\xba\xa3\x6f\xd9\xce\x56\xfa\x72\xa6\x64\x92\x5d\xbb\x5a\xb6\xd7\x5f\xf2\xa2\xcd\xf6\x25\xcb\x7f\x1d\x5a\x6e\xf8\x76\x3b\x5c\x9b\x56\xbc\x29\x3e\xcd\xca\xb2\x7e\x65\x39\x22\x0a\x6c\x16\x65\x87\x0f\xfb\xc7\xc3\xa3\xe4\x62\x8e\x7c\xfd\x41\x9b\x43\xfd\x45\xdb\x3a\xfe\x65\x0b\x30\x94\x59\x13\x7f\xc8\x54\x15\x4a\x62\x93\xbe\xf9\x4d\xb3\x30\x3f\x6a\x2e\xea\xe3\xd6\x46\x55\xbc\xf4\xdf\xd2\x44\xd2\x15\xdc\x6e\x2f\x65\x76\x60\xa7\xba\xcc\x4d\xb9\xc0\xe7\x1b\x68\x2e\xa3\x65\xe4\xbd\x58\x28\x65\xfc\x1d\x5b\xf8\x4f\xfa\x3e\x3b\x16\xac\x14\xae\x88\xb8\xcf\x6b\x69\x27\x7f\xf7\xfe\x9d\x5b\x25\x5f\xb6\x09\x53\x97\xf1\x1b\xf0\x8e\xa2\xf6\x63\xb7\xd7\x56\xad\xcb\x0b\x9e\x23\x43\x5e\x36\x97\x7f\x1d\x8b\xb2\x1c\xae\xeb\x28\xdb\xc8\xd3\x6d\x4c\x80\xa9\xbc\x29\x32\x06\x0d\x6e\xeb\x14\x90\xbc\xaa\x3e\x8c\x1c\x93\xd9\x1a\x80\x8a\xeb\xea\x12\x72\x31\xc0\x2d\x00\xd4\x31\xcb\x59\x7e\x13\x02\xee\xd7\xfd\xcf\x50\x26\x2e\xee\x8a\x32\x3e\xeb\xa9\x02\x71\xe9\x0c\xaf\x95\xb8\x3c\x21\x91\x64\x2c\xa0\x2a\xe3\x21\xc0\xa2\x88\xc7\x84\xaa\xef\x2a\x74\x4d\x16\xc9\x50\x25\x55\x5a\x54\xc7\x7a\x62\xd0\xaf\x14\x0d\x75\x38\xa4\x1b\x54\xee\x67\x4b\x32\x72\xff\xf2\x70\xca\x9a\x6e\x96\x17\x6d\xd7\x14\xfb\x6b\x6f\xe8\xa7\xfb\xac\x49\xda\x6f\x2f\xc9\x6c\x9f\x35\x6d\x32\x6b\xcb\xe2\xc0\xa6\xe9\xc0\x43\x6d\xc1\xc8\x5a\xc8\x25\xf7\x50\x0b\xbe\x1c\x10\x85\xca\x11\x2c\xd9\x37\x56\x26\xe2\x1f\x9d\x43\xe8\x72\x2d\x4b\x96\xcb\x7b\xdf\xa8\x35\x64\x55\xee\xc7\xed\xe7\x45\x1c\x95\x1b\xd2\xf7\xd9\x99\x55\xd7\x84\xff\x77\x5a\x16\x6d\x97\x64\x20\x93\xc0\x26\x1d\x72\x24\x88\xa4\x03\x52\x67\xa0\x41\x07\x97\x0f\x8b\xaa\x65\x1d\x5f\x18\xa5\xda\xfe\xe3\xb7\xf0\x1d\xde\xa6\x51\x72\x0a\x1d\xaf\x6b\x9b\x26\x08\xe3\xe9\x52\x2e\xcb\xac\x64\xe6\xaa\xb7\x3d\x4c\x85\xdf\x41\xb2\x16\xc5\x96\xf2\x38\xb0\x12\x0a\x78\x22\xb3\xb5\x1e\xc5\xeb\xc7\xfe\xc7\xc5\x13\xbf\xf6\xbd\xa7\x3c\x15\xb3\xbd\x7d\xf0\x5c\xe3\x8a\x9c\x59\x78\x0e\x56\xb6\x67\xa5\x82\xe9\x4b\x13\x91\x72\x24\x71\xb3\xf2\x88\x2f\xb2\xdd\x1e\xd9\xd3\x31\x7b\xda\x95\xac\xeb\x58\x33\x6d\x7b\xcf\xa5\x7a\xe9\x9d\x07\x9b\xb6\xe9\x97\x99\x59\x57\x52\x98\x3a\x04\x95\x0b\x71\xec\xa4\x86\x71\x1c\xdb\x9f\x50\x04\x0e\x75\x59\x66\x97\x96\xe5\xd3\xba\x2a\xbf\x7f\x35\x2b\x6a\xa0\x73\x65\x93\x59\x3d\x7a\x38\x3c\xf3\x4b\xb2\x7d\xde\xa4\x3c\xb5\xc7\x18\xda\xae\x68\xbd\x6c\x6d\x9b\xbd\x98\x0e\xb8\xb4\x7f\xb2\x20\x51\xbf\xf0\x14\x26\x50\xa5\x11\x27\xc5\xf0\x8a\x66\x73\x31\x1f\xe0\x23\x54\x39\xc1\xea\x4f\xed\x05\x3b\x7c\x79\x56\x14\xd7\x59\x93\xd7\x86\x1c\x67\x8d\xa0\x30\x93\x09\x8c\xa6\xfb\x92\xb1\x5c\x4f\xbb\x14\x43\x9e\xe7\xaa\x64\x56\xde\x9b\xf4\x5d\x66\xff\xb1\x72\xe8\x38\x29\x83\xcc\x56\x2a\xad\x6c\x55\x5d\x9d\xf0\xca\x4e\xfe\x30\xdf\x3c\xa6\xab\x7c\xf2\x87\x79\xfe\xbc\xda\x3c\x3e\xa8\x79\x75\x09\x54\xba\x6f\x63\xd0\x66\x8b\xf4\xf2\x66\x35\x1b\xff\xe4\xa4\x51\xf2\x27\x32\x22\x53\xcf\x3d\x51\x79\x48\xfc\xf4\xa4\xc5\x33\x17\x64\x56\x22\x12\x3f\xfe\x4c\xd9\xd2\x00\x98\x36\x80\x80\x95\xd0\x02\xd1\x4d\x53\x73\xf1\x3a\x22\x9b\xd3\x76\xbb\x67\xc7\xba\x61\x37\xe9\x63\x5c\xde\xb4\xa7\xd3\x4f\x22\x43\x6d\x88\x5d\x04\x31\x5f\xfd\x94\xfc\xa4\x7d\x2c\xee\x8a\x21\x59\xa9\xa4\xee\x8b\x34\x4f\xbd\x5b\xe7\x93\x93\x55\x39\xcc\x57\x64\x3a\x75\x6d\xd7\xb0\xee\x70\xc2\x97\x1f\xac\xca\x77\xe6\x92\x53\xac\x0b\xbc\x9c\x7e\xc9\x22\x75\x64\x14\x9d\x8f\xe8\xc6\xbe\xc9\x08\x72\x34\x8d\x96\x1d\xea\x2a\xc7\x1f\xe2\x13\x83\x4d\x3b\x0a\xd2\x6d\x4d\xfa\x21\x94\xa8\x3f\x52\xd5\xf1\xab\x19\x6a\xc3\x70\x05\xd3\x5c\xe1\x38\x33\x4d\xe2\xb2\x19\xfa\x1a\x42\x91\x3d\xac\x96\xc9\x08\x52\xcf\xf4\xe5\xda\x4f\x75\x52\x65\x17\xeb\xd4\x58\xad\x4a\xed\x53\x96\x8e\xcf\xb2\xa6\x81\x26\x44\x19\xa8\xfe\xf2\x47\x35\x05\x4f\xd7\xbd\x9f\x32\x66\x5e\xf2\x8b\x0b\xb2\x94\xbd\xcf\xaa\xba\x2b\x8e\xc5\x81\x1b\x9b\x9b\xe5\xc2\x0d\x0e\x1c\x36\xb5\x9a\x98\x5c\x7b\x58\x95\xc3\x64\xda\x7a\xfd\xea\x9a\x0b\x6b\xc1\x66\xd3\x6a\xae\x55\x65\xd3\x62\x73\xb6\xb7\xdd\x34\x3b\xf8\x5f\x3a\x5b\x36\x39\xd6\x34\xb5\x35\x7d\xae\xf2\xc7\x7c\x05\xb7\x59\x77\xf8\xae\xb2\x4d\xec\x90\x55\x07\xd6\x3b\xcd\xf6\x7c\xbc\x62\x19\x3c\x3e\xb3\x37\xcd\xa4\x83\x6f\x13\x94\x89\x8b\xf0\xc9\x1d\xcd\xde\xe8\xd2\x90\xf9\x39\x0c\x1a\x8f\x69\xff\xe3\x6c\x64\x60\xb9\x2a\x6c\x62\xd6\x63\xc2\xdb\x3f\x3c\x3e\xef\xe1\xf5\x50\xe7\x16\xa1\xa3\x0c\xee\x64\xfc\x87\x7d\x76\x9c\xe7\x07\x78\x53\xc4\xa6\x25\xd7\x64\x36\x39\xb1\x36\xb3\xbf\x5a\x0f\xa6\x7d\x48\x45\xdc\xe7\x34\xb6\x7f\xd8\x1f\x18\x3b\xcc\x61\xa0\x8a\x2d\xb0\x5c\xfd\x39\x7d\xea\x64\x96\xff\x90\x8a\x38\xc9\x85\x3f\xa4\xc1\x32\xf1\x00\xae\x70\xd2\x8f\xc7\xc7\xe9\x25\x7b\x29\x2a\x61\x2b\x14\x78\xd6\xff\x98\x25\x89\xf1\xfb\xb4\xba\x9e\xf7\xac\x69\x07\xcb\x62\xae\x25\xb8\xe2\xf3\xa5\x02\xdb\x56\xf5\x6b\x93\x5d\x76\xc2\xda\x2c\x48\x7a\x7d\x97\x4f\x48\x66\xec\xad\x23\x0b\x2f\x0d\xfb\x56\xd4\xd7\xf6\x86\x8d\x08\x99\xbe\xcd\x5a\xac\xaa\xad\xe0\x1d\x2a\xbd\xb1\xe3\x47\x78\x6d\x9e\x3a\xa8\x6d\x36\x4f\x4d\x02\x20\xaa\x3e\x7a\x07\x8d\x4a\x45\xa7\x4f\xd4\x65\xc2\x06\x9f\x54\xca\x11\xf4\x89\x15\x80\xd1\x72\x91\x27\x84\xea\xb8\xef\xd2\xd4\x2f\x8d\x0c\xda\xe1\x9b\x54\x6a\x17\x69\xd3\x2f\x25\x64\x46\xc4\x21\x11\xa2\x68\x75\x23\x71\xf4\x22\x4d\x7b\x40\xbe\xb4\xe0\x9f\xa6\x0a\xc7\xcc\x2e\x9d\xfe\xfc\x2e\x17\x14\xa8\x29\x34\xb6\x9a\x43\xbb\xd2\x6a\xa5\xb7\x6d\xd9\x25\x6b\xb2\x8e\xed\x1c\x1e\x7c\xa9\x53\xbc\xb1\xfc\xc6\xff\x9c\x96\xd9\xf7\xfa\xda\x6d\xf9\x27\x1b\x24\xe9\x72\x71\x34\xa0\x57\x0f\xac\x2c\x8b\x4b\x5b\xb4\xee\x7a\x42\x63\x16\x6d\x5d\x66\x1d\xcb\xdd\xd5\x91\x00\x79\x2d\xba\x13\x4f\x7e\x69\x03\x58\x7e\x7a\xef\x94\x9a\xbb\x32\x66\x19\x5f\xd8\xe8\x42\x87\xf2\x57\xf1\x01\xe3\xa2\x36\x21\xb4\xb8\x72\xab\x35\x11\x3e\x5a\xc9\x0e\xbc\x24\xc9\x26\x2e\x48\x97\x63\x1f\x4f\xa6\xe5\x00\xa4\xfb\x49\x8a\x55\x7d\x33\xf2\x45\x63\xd7\x88\xfc\xe4\x9a\x11\xcb\x1f\xd0\xa7\x27\xfa\x9f\x71\x64\xf4\x96\xb8\x8d\xc3\xa1\xba\xa6\xb8\xf8\xd1\xab\xee\x24\x36\x2b\xbe\xb0\x6f\xac\x42\xa5\x92\x1b\x98\x9f\xc4\x81\x3c\xfe\x57\x26\x40\xf4\x82\x6e\x71\xa7\x99\x93\x39\xdf\x89\x32\x6c\xe3\x80\xc3\xf7\x90\x4f\x0d\x63\xd3\x7f\xbb\x66\x4d\xc7\x9a\x76\xa0\xe2\x96\x49\xef\xf8\x71\xfd\xb3\x45\xe1\xb5\x9e\x76\xa7\xa2\xc9\x6d\x6c\xfd\x5d\x62\x6e\x36\xb3\xcd\xc6\x42\x3e\x65\xe5\x11\xa2\xf5\x5f\x24\xc2\x3a\xb5\xa0\xeb\x8a\x09\x92\x10\x45\x7f\x96\x78\xcb\xe5\x6c\xb9\x44\x50\x65\x4d\x5c\x64\x59\xa0\xfd\x7f\xbb\x86\xcd\xb5\x3a\x64\xfc\x8b\x55\xc5\xa1\xe0\x66\x0d\xf4\x1d\x61\x0f\xdc\x89\x12\xf2\xaa\xb2\xa6\xa9\x5f\x21\x1b\xf1\xed\x66\x2e\xb6\xfa\xe5\x55\x22\x7f\x99\x0d\xa3\x09\x10\xf9\x6a\x68\x05\xf8\x7c\xc2\xc8\x9b\xd0\xe0\xb3\x56\x28\xb1\xfc\x75\xb9\x71\xe3\x0d\x71\xf9\x27\xd5\x9c\xfd\xef\x86\xb1\x97\xb6\xde\xa4\x30\x87\xd8\x73\x89\xf9\x34\x5b\xea\xff\xfb\xd9\xa0\x00\xbe\x5b\xb2\x58\x72\xa8\x5d\x88\x5e\xf5\xe4\xff\x3d\x9a\xa4\x60\x01\xa4\xb5\x84\xb4\x96\x83\x7a\x98\xb5\xb1\x95\x65\x05\xb1\x56\xa6\x4e\x62\x95\x81\x05\x90\xd6\x1a\xd2\x5a\x4b\x5a\xab\x39\x51\x1b\x58\x00\x69\x6d\x20\xad\xcd\x30\xc6\x0c\x02\xce\x88\x7b\x84\x58\x8f\x0a\x8b\xea\x9a\xb5\xa7\x6f\x9e\x20\xad\x27\xd3\x2c\x60\xb5\xd9\x78\xfa\xe6\x19\xd2\x7a\x1e\x8c\x93\x41\xc0\x31\x55\xf3\xd4\x52\xb4\x54\x69\x1a\xd5\x3b\x4f\x9e\xde\x99\xdb\x6a\xab\xf4\xf6\x99\xea\x9f\x67\xa2\x7f\xf4\x2c\x9a\x74\xa7\xe1\xed\x04\xb9\xe8\xb1\x1d\xd2\x6b\x95\xb3\xa6\x2c\x2a\x06\x36\x54\x56\x69\x6a\xd2\x33\x16\x6e\x26\x69\x73\x3d\x07\x7d\x28\x34\xb2\xc1\xda\xb1\xd1\x0c\x78\x1e\x6e\xb0\xe8\x50\x89\x31\xa8\x1d\x06\x03\xb1\x9f\xf7\x88\x59\x4d\xbf\x88\x02\xc0\x0d\xbb\xc4\xff\x3e\xe9\x33\x62\x7e\xfa\x68\x37\x83\x7d\xe0\x2a\x1c\x1a\xe8\x18\x61\x22\x72\xa2\xd3\xf6\x35\xeb\x0e\xa7\x7e\x81\x9a\xb3\x69\xdb\x65\xdd\x55\x2e\xb2\x26\xb3\xae\xae\xcb\xae\xb8\x6c\xb7\xd9\x51\xcc\x22\xaf\xf5\xb4\xed\xd8\x45\x66\x37\xa7\x32\x42\xc3\xba\x40\xf7\xc9\xae\x19\x2c\x35\xf7\xd7\x7d\x54\x4c\xf5\xc1\xe8\x24\xd9\x0d\xdf\xcd\x32\x3d\x04\xe3\x01\x00\x54\x17\x90\xd4\xfc\x7e\x99\x80\xaf\x45\x4a\x16\xeb\xe0\x50\x4c\x74\x67\x04\xc0\xc4\xa6\x74\x50\x1a\x94\x1c\x02\x26\xf7\xb8\xdd\x4d\xe9\x4b\x5d\x54\x1d\x6b\xa6\xbd\xf7\xd6\xb5\xa2\xe9\x80\xba\xde\x57\x23\x4a\xd2\x1b\xf2\x24\xc3\x7f\xfe\xb2\xb9\xbc\x3d\x84\xf9\xc4\x36\x89\xac\x2b\xca\x69\xba\x48\x09\x5e\x62\xcd\x38\xcb\x59\x7b\xf0\x56\x0a\x83\xbb\xe9\x63\x80\xff\xf6\x7f\xfd\xd7\x9f\x3c\xd4\xb3\x38\xe2\x19\x41\xfb\x7f\xf3\xd1\x3e\x65\x22\xc2\x42\x2c\xa2\x62\xd8\x10\x18\x9a\x23\xf0\xbe\x43\x0c\x75\x8b\xd0\xdd\x14\x83\x17\xdd\x94\x16\x95\xec\x3e\xe6\x19\xc5\xdb\x6d\x6a\xd7\x6a\x0d\x53\x9f\xda\x8a\x92\xe5\x72\xb9\x24\xb6\x0f\x3b\xd6\xa8\xa3\x2b\x11\x77\x25\x87\x9c\x88\x0b\x28\x7e\xef\x0d\x9b\x36\xf6\x6f\x18\x0d\x67\x3b\x43\x9e\xcd\xcc\x27\xcf\xcf\x2a\x4a\x92\xc6\x4b\xba\x1c\x9c\x7b\xd3\x86\x31\x84\xaa\xf4\xc3\xb5\x22\xba\xe1\x7e\x92\x76\x79\x79\x79\x93\xef\xbc\xc0\x77\x61\xa6\x73\xe7\xa8\xc2\x9c\x97\xd5\x16\x29\x10\x48\x98\x82\xeb\xbe\x6f\x75\x1e\xb3\x62\xbf\x23\x81\xef\x26\xe2\xb4\x90\x33\x65\xb8\xd5\x22\xe4\x4f\xfb\xe5\xca\x70\xe2\xaa\xd6\x30\x73\xb0\x9a\x30\xc4\xeb\x57\x65\x3c\x2c\x8b\x5e\x2f\xcd\x74\x2c\x12\x6e\x5f\xc5\xbb\x21\xee\x06\x47\xdf\x8c\xbc\xd9\x46\x38\x30\xbe\x6d\x95\x61\xbf\x09\xdb\x91\x59\x60\x67\xca\xe2\x6d\xae\x89\xfc\xd7\x0c\x81\x31\x5f\xed\xc2\xa3\x4d\xa1\x1f\x03\x4c\x4a\x5f\x4b\x73\x03\xcf\xac\xbd\xf9\x7d\xf0\x2b\xf4\xbe\xa8\x90\x09\xf3\xe9\x30\x1f\xb0\x4d\xae\x25\x5c\x15\xce\x8d\x78\x92\x46\x9d\xf6\xaa\x8a\x0e\x2b\x57\xed\x6d\xd8\x3b\xd4\xbe\x50\xa2\xf7\x50\x3b\x21\xe8\x32\x24\x88\x08\x08\x92\xaf\x9f\xc1\x61\x0c\x22\x2a\x06\x98\x21\x14\xf9\xe6\x44\x59\xa8\x57\xbc\xda\xeb\xbe\xca\xbe\x0d\xe3\x98\x6f\x0a\x8a\x83\xe9\x79\xaf\x00\x22\xe2\x80\x1f\x2b\xaa\x47\x9b\x7e\x9f\x16\x55\xce\xde\xfa\xd5\xb0\x4d\xe7\xeb\x1f\x4d\x55\x55\x03\xc4\x04\xe0\xfb\x6a\x65\xdd\xb2\xc6\x84\x3c\x64\xe5\xe1\xcb\xb2\x6f\xde\xe4\x6b\x3f\xd8\x1e\xc6\x9c\x34\x5a\x55\x91\xad\xd0\x73\x7e\xe1\xbb\x54\xfd\xd8\xd4\x11\x3a\x4a\xb7\xf9\xca\xde\x76\xbf\x87\xb3\xd1\xd9\x13\xdf\xe7\x05\x91\xbb\x43\xd8\xa3\xac\x98\x41\x7e\x56\xd5\x62\x2e\xd1\xae\xc6\xe4\x50\xe7\xec\x06\xbf\x69\x9d\x37\x31\x8b\xc1\x4b\xb7\xbf\x47\x1d\x66\x22\xf4\xb0\x83\x4b\xa8\x4e\x38\x1e\x76\x5e\x26\x4f\xc8\xbc\x78\x87\xfa\x7c\x29\x99\x75\x7c\x28\xcf\xd9\xbd\x88\xee\x91\x28\xf2\x4e\xa5\xcb\x0e\x3f\xfb\x74\x1f\x4b\x76\x30\x4f\x75\x59\xd6\xaf\x4e\xd0\xa0\x35\xa4\xad\xb0\x02\x87\x8a\x71\xb5\xc4\xb8\x60\x25\xe7\x89\x44\xb2\x2e\x3a\xb1\x89\xba\x9a\x0c\xbf\xaf\x8d\xdf\x37\xf6\x93\x5a\x72\xd3\x9a\x97\xf3\x6d\xee\x7e\x92\x6b\xea\xfa\x0c\x1e\x05\xeb\x81\xb2\x49\x06\x03\x2a\x42\xcb\xed\x77\xae\x8b\x02\xf8\x70\x6d\x1a\x56\x75\xff\xd0\xff\x61\x55\x75\x08\x15\x70\xa2\x04\xf8\xf4\x85\xce\x68\x5e\xc7\xe6\x7d\xc6\xce\xfb\xde\xe4\x67\x6d\x71\x98\xe6\x4d\x7d\xc9\xeb\xd7\x0a\xf3\x3b\x30\x38\x15\xcc\x82\x78\x19\x62\x6a\xe6\xa7\x5e\xca\x1c\xcd\x53\xe0\x00\x80\x83\x6a\x1f\xf5\xa9\x08\x3b\x55\xc6\xd3\x0f\x2a\xa2\x5b\xb5\x15\x45\x81\xfb\x9e\x29\xb3\xef\xb6\x4d\xb5\x7d\xb6\x74\xd2\xff\xcc\xd6\x0f\xe6\xfa\xd5\x7c\xdb\x6e\xa8\x98\xf4\x9f\xf4\x73\x7a\xce\x3a\x2d\x20\xf6\x6b\xdd\x9c\x4f\x75\xc9\xa6\x75\x53\xbc\x14\x95\x15\x30\xae\x90\x2f\xf5\x2b\x6b\xe4\x02\x6a\xda\x35\xc5\x0b\xfe\x92\x6c\xef\x57\xc1\x1b\x0d\x8f\x6b\xed\x27\x4c\xdf\x02\x9b\xc8\xe6\x03\x7e\x22\xd8\xfd\xda\x6a\xae\xf0\x0a\x87\x53\x60\xed\xb4\xd0\x52\xdb\xcb\xa5\x21\x20\x8b\x7b\x15\xbb\x43\xc9\xb2\x66\xbb\xaf\xbb\x93\x8f\xca\x54\x4f\xd9\x1e\x4e\xe0\xfa\xa5\x15\x63\x99\x65\x19\xbd\x77\x63\x14\x4a\xaf\x03\x2d\x13\x2e\x8a\x5d\x64\x5d\x74\x42\x3b\x5f\xd7\x62\xcf\xca\xfa\xd5\x53\x87\xbf\x64\x4d\x91\x4d\xd9\xdb\x25\xab\x72\x96\xff\xb9\x6b\xae\xec\xd7\x49\x80\x66\x51\x4d\xf9\xcd\x87\x91\x64\x6f\xf7\x9f\xff\xf9\xe5\xc9\xf6\xf5\xb7\x7b\x85\xe9\xea\x0b\x2e\x49\x5f\x80\x8b\x01\x58\x20\x57\x40\x9e\x9f\x9f\xad\xa5\x8d\x3b\x40\x90\xb8\x03\x7c\xcc\xa0\x4c\xe5\xfe\x1e\x8f\xde\x76\xcd\x23\x76\x23\x44\x9a\x19\x1d\xda\x96\xda\xab\x32\xe9\x50\x73\xa3\x2a\x5b\xa0\xed\xbe\x97\x6c\xcb\x55\x0f\x2e\x8a\x1e\x2f\x6f\xc9\xaa\xf7\x53\xed\x5b\x41\x59\x66\xbe\xc8\x07\x5e\xe7\x13\x6a\xbe\xbe\xbc\xf9\x3b\x13\xeb\xaa\x24\xd4\x04\x83\x8b\xd5\xd4\x5d\xd6\xb1\x2f\xf3\xa7\x34\x67\x2f\x0f\x68\xdb\xf1\xe1\x3f\xdd\x77\x58\xcb\x59\x0b\x73\x19\x5e\x6b\x08\x8d\x5a\x8a\xf3\xb5\xec\x8a\x4b\xc9\xa6\xfc\xce\x8f\xf0\x2f\x8e\xd9\xb9\x28\xbf\x2b\x73\x65\xcc\xa8\xea\x8b\x19\xf4\x81\x76\x98\x69\x65\x15\x12\x75\xbf\x4d\xfa\x24\x5b\x30\x89\x97\x75\xd6\x6d\x7b\xd5\x76\xe7\x45\xe7\xd9\xc4\x7e\xae\xa9\x3a\x11\x40\x1d\x5d\xd3\xad\xba\x49\x86\xed\x82\x32\xef\xcc\x62\x53\x02\x37\xa9\xf4\x95\xc3\xdd\x30\xa0\x46\x11\x53\xcd\xc4\xff\x9c\x7e\x2e\xe9\x73\xfd\xfb\x67\x53\x6c\x3f\x22\xa8\x26\x57\x5f\x7a\x5d\x6e\xd1\x35\x72\x18\xcf\xdd\x0e\x79\x69\xb2\xef\x56\x84\xca\xea\xf2\xa6\xc4\x59\x2e\x97\x58\x7c\xcf\xaa\xff\x31\x82\x4e\x57\xee\xf5\x49\x57\xbb\xe7\xb3\xd5\xda\x54\x57\x29\xb7\xc8\x59\xd0\xff\x77\x49\xa8\xa5\xae\x43\xc3\xce\xf5\x37\xc6\x07\x35\xee\x82\x86\xd0\xc4\xa5\x0e\xee\x56\x3f\x0c\xef\xf3\xae\x71\xe3\xcb\xb2\xe6\x30\x44\x2b\xac\x08\xe1\x04\x98\xb4\x09\xee\xfe\x8c\xe9\x01\xa8\x99\xc7\x70\x05\x5d\x83\x81\xd9\x83\xa1\xa1\xb9\x8d\xda\x67\xf9\x0b\x9b\xcc\xf8\xf3\xdf\x53\xe3\x39\x57\x11\xd9\x64\xaf\x6f\x83\x52\x03\xf7\x26\xd2\x0d\x01\xc4\xb4\xcb\xef\x75\x67\x68\x2f\xc8\x71\x34\x5d\x75\xb4\x63\xce\xec\x68\x86\xb0\xd7\xa8\x84\x0c\xf8\xfe\xdc\xc7\x88\x76\xf5\xdc\x1d\xaf\x3b\xdc\x9d\x7b\xc4\xe4\xee\x1e\xea\xb3\x46\x12\x50\xbe\x9d\x7d\x2b\x29\xca\x97\xfd\xa8\x33\x35\x56\x46\x33\xf8\x0d\x21\xa7\x4c\x62\x59\xb4\x9d\xf4\x66\x78\x55\xa2\x17\x1d\x3e\xaa\x7f\x69\xea\x92\xfd\xb9\x27\xbd\xaf\xdf\x7e\xd5\x61\x34\xd3\xef\xc2\x87\x52\x24\xf5\xf7\xf6\xd0\xd4\x65\xd9\x8f\xd6\xae\xbe\x1e\x4e\xfc\x74\x5d\xe9\xf6\x42\x5e\x03\x21\xb9\xd9\x47\x06\xc3\xc0\x7f\x22\xcc\x4f\x6f\x98\x2f\xc2\x9b\x52\xd3\xb4\x74\x7c\x0d\x2f\xd5\xbd\x00\x3e\x8e\x16\xea\x99\x09\x89\x51\x1d\x14\x45\x21\xa9\xd0\xa3\xc8\x38\x49\x4d\x06\x2a\x36\x4d\xf9\xfb\x6e\x10\x68\x1e\x26\x22\x37\x4c\x48\x1a\xeb\xa7\xe7\xc7\xe3\x7e\xe7\x6e\x37\xb8\x0d\x38\xad\xb2\xb3\xde\x22\xc9\xd9\x31\xbb\x96\xdd\xce\x3a\xc3\xf0\x79\x0e\x68\xb3\xc5\x7b\x5e\xe0\x0a\x3b\x6a\xf9\x45\x73\x99\x17\x3b\x85\xc5\xf6\xaa\x18\xaa\x02\x81\x12\xd1\x12\xf0\x5a\x1b\x35\x8d\xde\xc3\x44\x8e\x19\xc0\x60\x95\x8e\x66\x80\x91\xb9\x57\x4e\xa4\xca\x54\xb3\xaa\xee\xce\x8b\xe6\xcf\x4d\x57\xfe\x3a\x78\x74\x62\x97\x71\x13\x89\x87\x0a\x13\xd2\x82\x28\x22\xa8\xaa\x88\x19\x3c\xb6\x52\x28\x5d\xcb\x27\xbd\x5f\x40\x6a\x65\xc6\x7d\x4c\x2e\xe8\xfd\x42\x9a\x0b\x4f\xde\x8f\x6b\x7d\x3a\x52\x54\x45\x57\x64\xe5\xfd\xb4\x87\xb5\xa9\x3c\x79\x89\x22\xad\x26\x48\x3f\xed\x4f\x1a\xad\x72\x4d\x4c\x0d\x83\x1f\x27\x8b\x35\x1a\x1b\x79\x6e\xf3\x83\xe4\x40\xb9\xfd\xd8\x5a\x63\xed\xcc\x87\x53\x76\x38\xd4\x4d\xce\x2f\x39\xe8\x5f\xf9\x35\xe5\x09\x5e\x24\xa2\xdc\xa2\x4e\x84\xad\x5c\x32\x8f\xc6\xd9\x36\xc9\xd5\x3c\x7d\xf4\x48\x00\x0e\x29\x09\xff\xd0\x38\x82\x76\x3c\xc4\x85\xb7\xea\x20\x7b\x13\x2d\x83\x71\x08\x1a\x88\xa3\x0b\x1c\x85\xfb\xcf\xd1\x09\x41\x79\x47\x80\xab\x9d\xd8\x39\x75\xc9\xde\xb6\x73\x0f\x05\xf2\xba\x54\x00\xa7\xa8\xe0\x4d\x69\x15\x66\x40\x22\xd9\x7f\xeb\x13\x18\x63\x5d\x0a\x8c\xbd\x4f\x53\x6c\x82\x5d\xfd\xf2\x52\x32\x91\xd3\xa9\xf7\xeb\xf9\x7a\x17\x39\x51\xe2\x6b\xd8\x9b\x79\xd8\x6a\x9d\xc3\xba\x97\x66\xb0\x24\x3a\xe0\xde\xc0\x3f\xd4\x39\xfb\xc7\xa2\x69\xea\x66\x32\x3b\x9c\xa7\xed\xb4\xf7\xd0\x25\x45\xa3\xf0\x06\x12\x28\x71\x41\xb0\xbb\x91\x64\x8e\x26\x1b\xc7\x0e\xf4\xb0\x9e\x6c\x7f\x7a\xc0\x10\xe4\x21\x25\x79\xb8\x48\x45\xb9\xe8\x07\xff\x1d\x8a\xed\x75\xdf\x95\x48\xd4\x90\x79\xa3\x7b\xf9\x00\x73\xbe\x29\x22\xf6\x9d\x4e\x78\x6d\xd3\x83\x83\xd6\xdd\xb9\x44\xee\xe2\x78\xab\xaf\xae\x4d\x11\x39\x28\xf8\xdb\xdc\x0e\x45\xa2\xfa\x43\x3f\x50\x75\xb7\xc7\x1c\xbc\x29\x03\x5f\x7c\x04\x38\x68\xdd\x87\x97\x4f\x41\xc5\x8d\xa7\x95\x7d\xfd\x2e\xa3\x7c\xf0\x8a\xeb\xdc\x95\x0e\x51\xaa\xeb\xcd\xa7\x03\xa9\xea\x5b\x37\x70\x8d\xab\xb6\xce\xfb\x87\x26\x0a\xde\xf1\x26\x43\x50\xff\xe1\x15\x54\x4f\xf5\xf9\x85\x5f\x22\xb8\x4b\x3d\x75\x69\x13\x24\xaa\x3e\x74\x03\x55\x6f\x37\x0c\x02\xde\x0c\xf6\x62\x8d\x54\x7b\xf0\x40\xa1\xaf\x01\xe4\x45\x65\xa2\x0d\xd4\x0b\x73\x08\x59\xaa\x19\x1e\x27\xf3\xa7\xcd\x64\xbe\x78\xf6\xe9\x7f\x85\x29\x00\x12\x4a\x02\x50\x46\x36\xc1\xf0\x38\x98\xa7\xfe\xea\x1a\x35\x35\xf0\xe5\x83\x25\x36\x4d\x4a\xfd\x87\x78\x49\xaa\xee\xe2\x25\x9e\x51\x75\xd7\x6f\x08\xc5\xd7\x7d\x78\xca\xe7\xf3\xea\xae\x68\xde\x5f\x77\xf7\x1a\x3a\xbc\x69\xee\xc5\x1a\xd9\x02\xe0\xbd\x0d\xdf\x00\x90\x17\xdf\xf1\x46\xd0\x0f\x26\x20\x64\x89\x76\x58\x6d\x26\xf3\xc7\xcd\x64\xfd\x48\xb7\x83\x7b\x7f\x1e\x5e\x91\xf7\x62\x8d\x6c\x07\x90\xe1\xde\x37\x11\xc8\x1b\xfb\x84\x0f\xa0\x52\x94\x23\x64\x49\x2f\x20\x9d\xcc\x57\x8b\xc9\xd2\x3b\x13\x54\x78\x30\x08\x12\xae\x65\x21\x8d\x6c\x06\x33\xaf\xb4\xa7\x15\x54\xa6\x01\xbc\x15\x74\x8e\x60\x97\x2a\xd5\x08\x69\x3a\xd9\xac\x26\xeb\x05\xdd\x06\xb1\x7e\x9c\x38\x6a\xd1\x1e\xe9\x7c\xb8\xe7\x38\x80\xe8\xf4\x34\x92\xd3\x66\xf1\xb8\x7e\x86\xd6\x3d\x7f\xce\x19\xdb\xbc\xcb\x3c\xba\xc2\x27\xb6\x4f\xb6\xc0\x31\x8f\x7b\x0b\x9a\xf3\x34\x41\xcc\xc5\x90\x73\x75\x1b\x40\x26\xf0\xcf\xa9\x88\x48\xf6\x82\xf0\xa5\x8e\xe7\x02\x2f\xb2\xde\x72\x97\x42\x60\xa9\xc4\x57\x0a\x79\xd1\x48\xe1\x9b\xfa\x15\x24\xc6\xd9\x67\x2d\x13\x97\xc9\x7a\xb8\x7e\xed\xb0\x95\x0b\x88\x50\x4d\x92\xd9\xe5\x5a\x96\x62\x09\x13\x51\x2b\x13\xfc\xe6\xe6\x53\x0a\xb2\x9b\x99\x39\x40\x83\xdc\x66\x58\x72\xd0\x47\xb7\x33\xd1\xf6\xbf\x77\x95\x1d\x25\x15\xb1\x04\x8d\xc2\xd5\xa3\xd9\x3d\x23\xb3\xc2\x2d\x47\x90\xfb\x6a\x95\x1a\x99\xe2\x86\x53\x2b\x90\x2b\x30\xb2\x1d\x51\xc2\x46\x0e\x88\x21\xa7\xe4\xa8\xf3\x2e\x2f\x5f\xc0\x03\x8c\x1f\xcb\xc8\x91\xe3\xc9\xb9\x25\xe0\xa6\xc6\x0b\x4a\x30\x23\xd2\xe4\xc1\xe5\xf4\x48\x32\xbf\xc8\x1d\xaf\x6f\x05\x7b\x35\x37\x85\x7e\x81\x1b\x49\x63\xa9\xc6\xec\x2f\x7d\xac\x3f\x90\x55\xd0\xf6\x0f\xf3\x6c\xb1\x59\xda\x39\x73\xd6\xeb\xa7\x34\xb3\x96\xc3\x41\xea\x43\x9e\x8c\xfb\x0f\x8a\x83\xd6\xc7\xbd\x3c\xf2\xa1\x6d\x2e\x2f\xbf\xa6\x7e\x35\xb7\x8a\xc8\x9c\x66\xca\x74\x87\xc9\xd9\x23\xb1\xe7\x60\x54\x08\x99\xe4\xf4\xce\xc7\x2f\xa8\x81\x44\x07\x93\x6f\x43\x27\x8a\xb6\x69\x79\x48\x1d\x20\xb1\x4d\x15\x30\x33\x6e\x91\xc9\xb8\x10\xc2\x7c\xb7\x23\x58\x65\x4f\x06\xae\x3b\xc8\x23\xb5\x26\x9b\x0d\x25\x80\x54\x1c\xd9\xe1\xc1\x92\x88\x21\x1c\xf8\xf4\x14\xee\x74\xf3\xba\x94\x6f\x43\x27\x8a\x3c\xd6\xef\x6a\x4f\x24\x8a\x00\xd6\xf5\xde\xad\x1e\x92\x7c\x6f\xa7\x82\xb5\x47\x13\xa7\xdd\x45\x1a\xa9\x39\xde\x6e\x18\x32\x52\x6b\x7b\x87\x07\x66\x7b\x43\xe8\xca\x2d\x8e\x70\x95\xe9\x14\x6f\x7e\x95\x27\x18\x60\x15\x97\x09\xe3\x62\x49\x60\xd5\x77\xf7\x77\xb0\x4c\x75\xa8\x5a\x55\xe1\x7e\xf7\x64\xa1\xf3\x37\x02\x46\x1d\x69\x01\xfd\x74\x6d\x0c\x3e\x52\x7d\x64\x8b\x03\x4b\xa3\x87\x30\x28\xaa\x63\xfd\xe3\xaa\x8f\x51\x1f\x53\x7d\x0c\xff\x53\xab\x2f\xf7\x39\xc2\xa3\x80\xce\x1b\xe8\x6f\x01\x82\x01\x36\x0a\xd4\x1b\x9a\x91\x24\xb0\x51\xe0\x6e\xf2\x60\xe9\x0f\xb1\x79\x55\xec\x73\x84\xcd\x3f\x9d\xf0\xd0\xdf\x0e\x04\x03\x6c\x02\x50\xaf\xd6\x45\x92\xc0\xa6\x00\x74\x93\xc7\xc9\xdb\x88\x5a\xdb\xea\x85\x35\xc1\x66\xf0\x64\x6a\xf4\x37\x03\x4e\x1f\x69\x05\xfd\x68\x54\x1c\x05\xa4\x11\xb0\x3d\x1e\x24\xdd\xa4\x79\xb8\x27\x43\xec\x6e\xc6\x2d\xa3\xb5\xc8\xd9\xc4\x0f\xfd\x4e\x59\x7b\x2a\xa6\x0d\xcb\x44\x9a\x74\xf7\x54\x90\x03\x98\xe7\x81\xc8\x06\x30\x3f\x6e\xd0\x89\x31\xcc\x93\x63\x23\xf3\x8c\x0c\xfe\x3f\xd7\x55\xcd\x0f\x37\x75\x30\xa0\x08\xc1\x3d\xd7\x75\x77\xe2\xaf\x49\x5e\xbb\xda\x8e\x84\x36\x85\x4d\xcc\xca\x89\xdc\xb9\xed\x04\xad\x0c\x06\x89\x89\x6f\x2e\x5e\xe4\x6a\x8e\x60\x27\x76\x9b\x22\xb8\x09\x40\x10\xe2\x2b\x16\xa6\x7d\x1d\x13\xed\x56\x10\x6c\xfa\xda\x8b\x04\x9d\x11\xac\x06\x60\xb5\x75\xb6\x3c\xac\x9f\x1f\x1f\x83\x1d\xac\x9e\x8a\x49\xf2\xe2\x1b\x50\x18\x19\xc8\x44\x28\x40\x08\xcd\x7f\xa6\x3a\x7f\xf0\xd6\x7a\xbb\x15\x64\x78\xa0\x93\x07\xee\x97\xf6\x92\x55\xa3\x80\x7d\x18\x9e\x96\x1d\x8f\x71\x27\x23\x54\xc8\x51\x6d\xd9\xe3\xf6\x7f\x1f\xea\xf3\x99\x55\x1d\xc1\xd7\x82\xb2\x73\x74\x20\xf4\xda\xae\x29\xaa\x97\x09\x5d\x34\x5d\x04\x78\xb9\x14\x48\xa0\xe9\xe2\x66\x79\x77\x08\x5b\xef\xd8\x80\x40\x37\x1d\xd6\xba\x62\xeb\x27\x94\xda\xb7\xac\x29\x44\xfa\x26\x4f\x61\xb0\x8e\x18\x15\x0f\xd8\x50\xcf\x79\x9e\xb1\x7e\x5e\x41\x98\xe7\xec\x18\x20\x97\xb3\x63\x44\x7b\xd5\x17\xd6\x64\x1d\x69\xb8\x6c\xb0\x08\x9d\xf8\x8d\x7d\x7f\xad\x9b\x3c\x40\x50\x42\x0d\x49\xee\xf3\x7c\xfd\x88\xd2\xcb\xba\xfa\x1c\x20\xd6\x83\x28\x4a\x4f\xe9\x63\xce\x70\xc9\xce\xac\xcb\xd0\x9e\xec\xb2\x90\x06\xda\xa8\x08\x48\x97\xbd\x44\xb4\x77\xd6\x89\xb7\x86\x70\x95\xfa\xb7\x6b\x56\x16\xc7\x22\xa8\xc0\x28\x15\x04\x4e\xd3\x1b\xda\x39\x4d\x9f\xf0\x76\xbe\x34\x7d\x27\x77\xdf\x03\x24\x15\x58\x44\x5d\xf7\xd7\xa2\xec\x8a\xca\x3f\x78\x96\x01\x7e\x08\x11\xdf\xd8\x59\x7a\x6a\x6a\xda\x55\x11\xea\x25\x2e\x58\x69\x43\x1a\x61\x8f\x51\x3c\xb8\x76\x58\xf5\x3f\x24\xe3\x73\xd6\x1d\x7a\x67\x66\xdf\x64\x87\xdf\x18\x65\x8a\x3d\x18\x4e\xb6\x98\x21\x4f\xa0\xe9\x8b\xc6\x7a\x3d\xb8\x00\x01\xaf\x8e\xbb\x45\xef\xb3\x43\x7d\xf9\xae\x92\xe2\x59\xb9\x43\x1b\xfd\x30\x9b\x3a\xbe\xe0\xfb\xa1\x06\x46\x22\x5f\x84\x94\x1d\xa6\xaf\x1c\x21\x20\x7c\x59\xd4\x65\x5d\x71\xf0\xa4\x12\x44\xf0\x92\xf6\x9b\x7c\xa9\xcb\xcc\xe3\xf0\x3e\x3b\x94\xc5\xf4\xb5\xa8\xf2\xfa\xd5\x7e\x72\xca\xd8\x4f\x34\x3d\xe2\xe1\x9a\x94\x38\xc4\x1a\x08\x24\x3c\x59\x84\x91\x88\x00\x14\x0e\xe7\x40\xd6\x76\xdc\x00\xc3\x13\x7b\x94\x59\xdb\x57\x0e\xc4\xd3\xd9\x37\x7d\x7d\xd1\xdd\x6e\x8e\x88\x21\xc8\x6f\xc9\xce\x3c\x06\x3e\xe1\xbf\xf5\xff\x41\xf3\x68\x47\x3e\x7e\x0c\x17\x18\x3c\x33\x33\x76\xc4\x22\x12\x36\x0e\xd7\x6c\xed\xb3\x58\xbb\x72\xea\x8d\xc1\x88\xdc\x01\x91\x82\x4e\xcc\x04\x43\x3d\xa0\x0e\xfb\xb2\x79\x9b\x49\x4a\x7c\x12\xcc\xee\x79\x27\x17\x79\xbe\x25\xbe\xb1\x27\x4a\xf6\xfe\x7f\xd6\x29\x7a\xef\xe1\xf9\x6a\x12\x8a\xc5\x8f\xad\x69\x30\xa6\xdf\x38\x31\xa2\x5a\xe3\x71\x7d\x8f\xb0\x97\x86\x1d\x8b\xb7\x0f\xc9\x29\x48\x90\xb1\x14\x5c\x2e\x61\x2a\xa6\xe6\x33\x55\xe0\xe1\x52\xf7\x58\x7d\xf4\x4b\xe1\xfc\x55\x41\xdd\x00\x30\xc2\x19\xc9\xee\x82\x21\x7d\x1d\xd0\xcd\x33\xf5\xe9\x9c\x9f\x32\x21\x08\x83\xd9\x30\x4b\x7d\xb9\x4b\xac\xcb\xb5\xc4\x03\xc1\x38\x17\xf8\xcc\x72\x88\x97\x3b\x96\xc9\xc1\x8a\x31\x35\x4f\x32\x43\x15\xc6\x71\xc2\xcd\xe0\x89\x09\xc0\x8f\x02\x09\x51\x87\x18\x92\x68\x49\x4d\x94\x38\x41\x03\x69\xea\xdc\x63\x49\x27\x25\x88\xf9\x82\xa0\xbe\x6d\xb5\xb3\x6f\x2a\x11\x99\x32\x90\xa8\x74\xcd\xa0\xe8\xd8\x39\xe2\xfa\xdc\x88\x24\xea\x9a\xb4\xc7\x3e\x80\x71\xaf\x17\x2b\x43\xce\xa1\x8b\x38\x3f\x75\x48\x39\x10\xe3\xcc\x12\x49\xd7\x03\x4b\x4b\x0f\x5e\x7d\xb2\x45\xc3\xe7\x4a\x5d\x36\x3c\x26\x59\x16\xc9\xb5\xf4\x5d\xf6\x75\x5e\x4c\x49\x5d\x66\xd8\xed\x18\x31\xc5\xdb\xc7\xe5\xc6\x2d\xdd\x15\xe6\x39\xd9\x94\x7f\xb9\x96\xe0\x56\xb2\x5d\x9e\xd8\x5f\x10\x79\xb1\xe4\x30\xf6\x55\xf8\x08\xca\x89\x18\x04\x78\x06\xe5\xe5\xe5\x2d\xe1\x43\xa2\xa8\x86\x67\x4a\x2e\x6f\xb4\x63\x43\x71\xf9\xea\x54\x08\xbf\x23\xef\x78\x2b\x14\x41\x65\x7a\xc3\x80\xce\x3b\x70\xca\x81\x1b\xfc\x34\x73\x57\x72\x31\x08\xa3\x0e\x54\x22\x85\x11\x2d\x19\x2d\x92\x6c\x78\xb0\x82\xd8\x80\xb6\x7e\x7e\x02\x56\xcb\x25\xc7\xce\x97\xee\x3b\xd1\x75\x4f\x97\xb7\x84\x67\x67\x54\xbb\xd0\xf2\x5e\x0f\xc7\x99\xaa\x17\x3d\xad\x37\x6b\xe8\x43\x70\xd3\x8e\x02\x12\x09\xfc\x93\x1f\x23\xf0\xd4\xa6\x43\x22\x89\x85\xf9\xf8\x2a\xb7\x4a\xd8\x13\xef\x5e\xaa\x20\xf0\x29\x4d\x16\x2a\x8d\xb7\x49\x62\x67\x19\xbe\x20\xc1\xa4\xed\x9a\xba\x7a\xb1\x0d\x26\x00\x34\xe3\xd2\xac\x20\x34\x26\x36\xb6\xeb\xaa\xcb\x8a\x4a\x3f\xaf\xe1\xa4\x68\x33\x63\xcb\x16\xeb\x6f\x27\x6f\xfc\xa2\x78\xde\xde\x79\xa9\x51\xbc\x11\x8f\xbd\x4f\xef\x74\x98\x23\x57\x22\x3f\xa8\x2e\x97\xba\xb5\xfe\xf6\x6a\x3e\x46\x20\x4e\x40\xfc\xa8\x89\xc8\x3c\x78\xc3\x3a\x0f\x47\x6c\xbb\xec\xf0\xdb\xb4\x6b\x86\x4c\x11\x31\xaf\xb3\xda\x67\x5a\x24\xf9\xb2\xa8\x7e\xd3\xa9\x6c\x84\x29\x59\x0f\x13\xb8\xfe\xdb\x67\x6a\x76\x74\x73\x60\x4a\x7a\x6c\xa7\xec\xed\x52\xd6\x0d\xe8\x6f\xf0\x5d\xbe\x0a\x1b\x8e\x9b\xa3\x9f\x13\x30\xa9\x89\xb4\xc1\x19\x9e\x2d\xd7\xda\x0c\x40\xf0\xd4\x43\xcf\xfc\xd6\x28\x9d\xfc\x11\x56\x60\xdf\xb0\x2c\x3f\x34\xd7\xf3\x3e\xc9\x26\xa8\x34\x88\xff\x4e\x52\x90\xd3\x30\xcf\x26\xc5\x91\xfa\xce\x2a\x2a\x9d\x70\x1c\xa1\xef\x47\xb9\x65\x55\x71\x16\x35\x68\x2f\x45\xf5\xef\xb8\xa6\x24\xb3\x75\x9b\x14\xd5\xb1\xa8\x8a\x8e\x25\xe2\x3d\x5d\xb5\x46\x5f\x38\x13\xb8\xa5\x73\xcf\xe9\xea\x69\x63\x44\x43\x72\xd7\x51\x34\xae\x99\x04\xcb\x59\xf4\x99\x85\x48\x26\x41\x61\x91\x8d\xf7\x61\xa5\xca\xb0\x33\xf2\xde\xab\xf0\x37\xa7\x22\x9e\x53\x27\xbc\x5d\xa7\x3f\x27\xd3\xe4\xcb\x9c\x9d\x93\x3f\x25\x8b\x87\x07\xb2\x9d\x6f\x43\x1e\x27\xaa\x27\xca\xc2\x48\x5d\x0e\x26\x05\xb2\xef\xc0\xe0\x1a\x1e\x62\xd6\xf9\xe0\x60\x6c\xc2\x90\x8e\xca\x4e\xba\x8d\x3f\x3b\x47\xb1\x9d\x0d\x29\xc5\xb3\xc9\xac\x38\xf7\x06\xfb\x58\xd8\x0f\xa3\x79\xc4\x26\x32\x4c\xc7\xe8\x3b\xa1\x7a\x37\xec\x4a\xeb\x9d\x2a\x7f\x53\x5d\xdd\xd3\x90\x8f\x9d\x9a\x33\x06\x95\xec\x48\x1e\x24\x3b\xf9\xb6\x05\x09\xfb\x81\x6f\xe8\x49\x8f\xc8\x95\x2c\x25\x02\x52\x88\xfe\x12\x25\x7c\xff\xe1\xc2\x2a\xfb\xda\xc5\x32\xe5\xb7\x2f\xd7\xf3\xfd\x7c\x11\x14\x4a\xd9\x2c\x0c\xb0\x77\xe3\x81\xf4\xee\x76\x81\xf5\x0c\xb6\xf9\xb2\x2d\xfa\x90\x03\x2f\x7a\x18\xd2\x52\x2f\xd2\xdd\xd0\x39\x5b\x8d\x92\xb0\xac\x65\xd3\xa2\x9a\xd6\xd7\x2e\x99\x2d\x5a\x4a\x3a\xdd\x04\x28\xb3\xf4\x81\xc2\x4b\xe4\x77\x79\xcf\x79\x42\x82\x55\xf5\x39\xcb\xa7\x65\xfd\x52\xcb\xd7\xf9\xd5\x48\xa5\x10\x7a\x50\xc3\x17\x09\xbc\x14\x8c\x39\x28\xe6\x5b\xba\xe6\x92\x78\xc1\x3d\x03\xc5\x97\xf7\x8d\xd1\x8c\xaa\x84\x9f\x0b\xf4\x8e\xa9\xed\x8e\x92\x09\x6e\xff\x90\xb2\xd5\x7a\x99\x6a\xa3\xa1\x12\x9b\x71\xb3\x37\x4f\xd3\x6f\xaf\xc9\xd7\x44\xf6\xdb\x20\xee\xb7\x13\x4c\x74\x8b\x74\xc0\xbf\x7c\x99\xf6\xf5\x7a\x30\x7b\x58\x32\xb1\xfb\x77\x50\x88\xf9\xf3\xf8\x21\x42\xea\x2c\xaf\xba\xd3\x32\x3e\xa5\xf9\x97\x2f\xe9\x83\x6e\x89\xd9\xa3\x1e\x16\xea\x42\x3c\x3e\x1a\xec\xb7\xc2\xed\xf7\xaa\x67\x8f\x7d\x67\xea\x1c\xc1\xa0\xd7\x85\x5a\x3d\xa5\x87\x75\x96\x39\xeb\x39\xc0\xfc\x97\xf6\xdb\x8b\x72\x76\xd6\x97\xb7\xf1\xed\x64\x57\xc2\xdc\x47\x79\x7f\x37\xed\x3b\xe1\x42\xdb\x61\xae\x88\x63\x36\x10\x49\x8c\xdf\xa7\xfc\xd7\x9b\x91\xb5\x94\x84\x3c\x64\xe6\x42\xdb\x08\x1c\xf7\xc3\xeb\x8b\xc0\x50\xed\xad\x25\x85\xac\x71\xce\xb8\x7b\x22\x56\x71\x62\xf9\x67\x25\x7f\xbf\x5e\x2e\xac\x39\x64\xad\x9d\xed\xd3\x4a\x3f\x0e\x26\xa3\x05\x7c\xb2\x1b\x24\x13\x35\x5f\x36\xc0\x84\xb8\x64\x45\x03\xa7\xb6\x05\xaf\x33\x01\x9a\xcc\x3a\xd6\x9c\x9d\xdc\xe8\x80\x80\x6c\x35\x82\x82\x7d\x4b\x4e\xd6\xc8\xc7\xf2\x94\xb5\xfd\x4a\xf7\x94\xb5\x85\xfd\x26\xae\x53\xc7\x7f\xad\xf7\xd3\xbc\x38\xea\x18\x00\x39\x65\xa2\xf1\x56\x03\x34\xf7\x37\xf2\x9c\xe5\x13\xf0\x29\x67\x25\xeb\x98\xf5\x76\xc2\xfc\x70\x82\x88\x2c\x2f\x1c\xa0\x85\x09\x94\xcc\xfa\xff\xea\x95\x80\xd1\xef\x32\x9f\xea\xe0\x57\xc5\x21\x6b\x71\x01\x95\x69\x14\x9e\x94\x16\x20\xae\x62\x10\x55\x63\x8c\x63\x99\xcc\xce\x59\xf3\x9b\xf0\x19\x84\xc8\xd6\x01\x7a\x2c\xb2\x94\xdb\x0a\x6d\x8c\xc5\x56\xc2\x5b\x41\x81\x04\x3a\x1f\xc2\xce\x8b\x19\x14\x70\x5d\x1a\x6a\x63\x15\x1e\x4e\x59\xf5\xc2\x6e\xc6\xa1\x98\x93\xc9\x8d\xc0\x14\x2f\xa4\x81\x94\xe4\x7e\x58\x7e\xeb\x05\xc0\xf7\x5f\x02\x38\x07\x56\x96\x16\x52\xff\x29\x02\xeb\x2b\x49\xce\x54\x10\x3e\x58\xca\x9a\x3f\xc4\x33\xfd\xff\x78\x3b\xfe\xdd\x46\x71\xe6\xab\x20\xad\x2a\xed\xea\x12\x04\x49\x48\xb7\x7b\xd2\xea\xfe\x38\xe9\x1e\xe0\x7b\x02\x9a\xb8\x29\xdf\xd2\xc0\x01\xe9\xb6\xaa\xfa\xee\x9f\xf0\x8c\xed\xf1\x78\x0c\x34\x7b\xf7\x69\xa5\x6d\x00\xcf\x78\x6c\x8c\x3d\xbf\x67\x94\xd5\x9c\x9e\x64\x37\xf2\x6a\x56\x67\x6a\xa5\x76\x50\x30\x26\xb0\x55\x33\xc8\x84\xdf\x58\xf7\x7f\x5f\xca\x4e\xd9\x1a\x94\xf6\xd4\x18\x7f\x46\x33\x33\x90\x1c\xb2\x4e\x90\x94\x31\xff\xd5\x55\xc7\xff\x1c\xca\x5a\xfd\xa9\xea\xf2\x35\xc9\xd3\x2d\x91\x31\x09\x2f\xb1\x98\xd4\xdc\xc9\xae\xe3\xa2\x2c\x5f\xbf\x69\x2e\x73\x21\xf4\x26\x84\xde\x2e\x87\xde\x86\xd0\xbb\xe5\xd0\xbb\x10\x3a\x5f\x0e\x5d\xfc\xd2\xb8\xf7\xbf\x34\xee\xdb\x00\x3a\x5b\x0e\xfc\xf5\x97\x86\x7d\x27\x0e\xfb\x0f\xe3\xe8\xfb\x43\xbd\x3e\x74\xe5\x93\xea\x93\x25\xcb\xef\x2d\xbb\x59\x8d\xec\xd0\xea\x36\xbb\x21\x3c\x64\x3f\x36\xd8\xfe\xf9\x39\x5f\xe5\xab\xfc\xcb\xfb\xb6\x90\x1e\x66\xab\x6c\x7c\xf8\xfe\xc7\xff\xbf\xcb\xf4\x49\x0d\x5d\x75\x80\xec\x65\xa2\xb1\x99\x14\xea\xa0\xa2\x8a\x56\x8d\x6a\xcd\xa7\x8f\x23\xc1\x2b\x1e\x08\x3b\x15\x46\x1e\x2a\x8b\x17\x68\x61\x89\xd5\x03\x84\x20\x89\x8a\xdf\x0c\x35\xa1\x81\x5a\x6a\xfe\xc1\x7c\x67\x31\xab\xab\x88\x3a\x4c\x63\x76\x95\x99\x54\xc2\x9d\xba\x0c\x57\xb1\x60\x48\x21\x1a\x71\x06\x97\xe1\x81\xa9\x03\x57\x0c\x00\x53\x4c\x4d\xc4\x24\x46\x83\x02\x67\x90\x32\x2a\x8c\x6e\x29\x06\x83\x01\xee\x13\xa1\x81\x72\x6c\xde\x0c\x46\x3e\x17\xa8\xcb\x8f\xc1\x40\xc0\x71\x2c\x48\x4f\x88\x93\x9b\x46\xc5\x7a\xd7\xc1\x74\xb1\xf6\x36\xf3\xd1\x44\xb0\x5c\x34\x52\x6d\x16\x2d\xa7\x04\xd9\xc4\xf8\xdc\x9d\xf9\x3c\x48\x35\xd1\x84\xa8\xa9\x69\x9c\x8c\x0c\x63\x09\x8c\x81\x40\x22\xa0\x7f\x96\x8c\x11\xe7\x07\xc9\xb0\x39\x79\x26\x22\xb8\xa2\xe1\x53\xb3\x68\xf9\xab\xc1\x30\xab\xe8\x27\x6e\x12\xe3\x4c\x85\x51\xc5\x62\x98\x66\xd1\xf2\xef\x05\x05\x82\xf8\x22\x3f\x13\xef\x11\x31\x96\x29\x1a\x4a\x34\x87\x95\x91\x62\x84\x8b\x18\x90\x5f\xd4\xd1\xcb\x2a\xc9\x6e\x2e\xdd\x40\x34\x46\x46\x85\x31\x25\x49\x30\xa6\x29\x29\xe0\x95\xe6\x46\x87\x10\x8a\xf5\x2e\xfd\x8b\x8c\xec\xb9\xac\x2f\x9e\xb9\x37\x70\x82\xcd\xde\xc3\x82\xd3\xa2\x36\xc8\xf0\xef\x90\x9d\x11\xce\x5e\x9a\xa9\xd1\x9c\x53\xe9\xf6\x96\x67\xbd\x30\xfb\x76\xd0\x51\xda\xa9\xf2\x28\xd5\xab\x93\xda\x42\x1d\x82\x20\x08\x4e\x6a\x8a\xb9\x76\x75\x45\x56\x2f\x2c\x45\xb5\xaa\x1c\xb4\xe4\xa8\x8d\x50\xeb\xd3\x48\xb4\x3a\x0f\x9f\xd7\xbb\xe2\xa8\x4e\x2b\xb4\x3c\x9a\xbf\xc9\xb6\x7d\x59\x7d\xba\x3b\x8c\xff\xbc\xdf\x50\xe6\x58\xea\x58\xd5\xd5\xa9\xba\xf7\x53\x14\xd9\x4f\x80\xa8\x8e\x71\x36\x37\x7b\xdf\x45\x45\x5f\x83\xfe\x4f\xaf\x2b\x07\x91\xa4\xb0\x3a\x89\x26\x32\x6d\xcb\x93\x5a\xd7\xe5\x6b\x73\x19\x68\xcc\x5c\x98\xbc\x41\x64\xa2\x3c\xf8\x04\x2e\x1e\x55\x79\xa4\xde\xbb\xa0\x1a\x26\xba\x3f\xa7\x95\xb5\x95\x88\xa0\xd2\x64\x60\xfa\x08\x91\x6b\x4f\x81\x80\xae\x6f\xb9\xe4\xd2\x18\x98\xd9\xdb\xf2\xa0\xd6\xf7\x6a\xf8\xa9\xd4\xd9\x33\x23\xe7\x9a\x33\x92\x7b\xc3\x9f\x30\xde\x37\x93\xa8\x75\x41\x5b\x7d\xd8\xa8\x07\x98\x56\x6a\xc2\x70\x86\x68\xb8\xe6\x4a\x74\x63\x7d\x73\x25\x38\xa9\x61\x23\xd8\x37\x16\x92\x12\xe6\x2e\x82\xde\x7d\xb5\xfc\x4d\xb2\x36\x5a\x79\x47\x66\xf8\xf0\x23\x5a\xe2\x8f\x4c\x15\x28\xff\x23\xc5\xba\x81\xac\x65\x86\x9d\x0f\x74\x3a\x6f\xed\xb9\x7a\x86\x69\x35\x97\xf7\xf7\x14\x99\xa0\x35\x8a\x14\x51\xaf\x73\x31\xaf\xed\x2d\xa9\x3c\xbb\x2b\xc7\x7f\x1c\xa1\x71\xe0\xf0\x7d\x71\x58\x85\xd3\x10\xc8\x5c\x9f\xba\xb2\x7d\x74\x0e\xfb\x79\xa1\x85\x22\xde\xda\x26\x2e\xb3\xed\x7d\x39\x0d\xfe\x17\x4e\x97\x59\x44\xdf\x53\xfc\xc6\x7c\x8b\x55\x7a\x0b\x75\x6a\x38\x7c\x79\x3e\x37\x03\xab\x08\x8c\x79\x7f\xa9\xff\x9e\x01\xc7\x9a\x36\xf7\xcd\x8b\x9f\xc9\xd8\xac\x71\x70\xec\x23\x9f\x6a\xe6\x7d\x9a\xce\x11\xc2\x21\x1a\xa7\x4e\x3d\x54\x2f\xe8\x7a\x4e\x1f\xf4\x97\x07\xf3\x40\xa8\x30\x66\x3e\xe7\x22\x8b\xa2\x4b\xda\x72\x78\x8c\xe2\xd4\x4f\xd1\x74\x68\x8c\x10\x91\xa6\xe8\xbc\x36\x89\x0e\xbd\x48\x08\x52\x63\x8f\x8c\x50\x07\x99\xe9\x61\xb2\x75\x99\xdf\xec\x26\x62\xaa\x2b\xb2\x1b\x5b\xdd\xb2\x70\x2a\x41\x6d\x69\x8a\x8e\xbd\x7f\x3e\x31\x83\x8b\x6c\x39\x8a\x0e\x1a\xf7\x11\x53\xae\x98\x9e\x69\x88\x09\x3f\x27\x56\x83\x9d\x87\x34\x90\x08\xe9\xd8\x9b\x18\x69\x8d\x57\xdf\xf3\x5d\x44\xdc\x76\xab\x7f\x9a\x99\x9b\xb4\x75\x8e\x13\xf8\x9e\x0e\xd5\x93\x8e\xcf\x4a\xec\xaf\xf5\xb9\x19\x14\x29\x71\x8f\xb7\xc3\xea\xf5\x09\x77\x58\x31\x25\xaf\x67\x96\xcc\x9b\x75\xa0\xf4\x1b\x8e\x88\xbb\xc6\x77\x70\xa5\xcf\x75\x95\x05\x6f\xa9\x41\xdd\x05\xf2\x0a\xed\x07\xbe\xd3\x19\xce\x60\xdf\x18\x7f\x9b\x12\x38\x01\x3e\x2f\x7f\x1e\x47\x2d\xa6\xcb\x73\x69\xc0\x13\xf8\x6d\x71\x57\x4f\x6d\xad\xb4\x1f\x31\xad\x09\x74\xac\xfa\x43\x52\x9d\xfb\xea\xa8\x3c\xfb\x78\x8e\x55\x79\x0f\x8f\x65\x37\x24\xf0\x67\x3d\x34\x4d\x3d\x54\x6d\xd2\xd4\x6e\xe6\x79\x81\x21\xaf\xa7\xa4\xae\x82\x62\xbf\x9a\x18\xe0\xfc\x06\xf5\x32\x70\xb3\x9b\xf7\x10\xf8\x44\x60\x75\x6d\x1c\xed\xdd\x6e\x7f\x2b\xb4\xd2\x4c\x2e\x93\x56\x82\x46\x1e\x7b\xcb\xcc\x99\xb4\xb1\x55\x0c\x51\x2d\x0e\x6b\x00\xca\x1b\xa6\x60\x61\x6d\xbc\x80\x31\xa3\xfe\x60\x6d\xb4\xd6\x83\xea\x28\xd8\x73\xa3\x9a\x60\xca\x03\xd6\x6a\x14\xac\x57\x61\xf7\xe7\x1f\x5c\xcc\x66\x4d\x8c\x74\xcd\xe4\x5f\x3e\x19\x28\xf6\x32\xc1\x34\x18\x89\x96\x47\xd9\x4b\xb0\x2b\x25\xf4\x77\x21\x15\x8c\xdf\xc3\x6f\x39\xdc\x5f\x58\xdd\x4e\xfc\xb6\x98\x6f\x25\x0a\x9a\x06\xf7\xdd\x9d\x43\xfd\xbd\xae\x96\x52\xc1\xb6\x1c\x66\x09\xf5\x4f\xdb\xed\x78\x1e\xc4\xcf\x01\xdf\xca\x1d\x96\xa2\x8b\xed\x72\x54\xa9\x4a\x7a\x8b\x13\x39\x31\x73\x64\xff\xa5\xdb\xb2\xcf\x78\x79\xdb\xb3\x30\xa0\x91\x19\xbd\x59\xc1\xa0\x96\xe5\x36\x85\x82\xe0\x01\xb1\xcd\xfd\x7f\xd5\x61\xe0\x79\x5b\x23\x73\x01\x8d\xbf\x4f\xe6\x7c\x1d\xe7\xa4\x69\x6a\x1a\xf8\xa5\xa5\x24\xb6\xf9\xe8\xd3\x6f\x5a\x3e\xf2\x53\xaa\x7a\x7b\xe2\x1a\x05\x74\xcf\x31\x00\x6f\xda\xfe\x13\xf3\xc3\x2b\x10\xe4\x11\xe0\x87\xd7\x6e\xbd\x7b\xe8\x6d\x00\x37\xc1\x6e\xd0\xab\xfa\xc1\xe8\xf7\x35\x75\xa7\xae\xf9\x39\x0a\x63\x62\x8f\x96\x23\x07\xc3\x80\x3a\xbe\x39\x98\xec\xf7\x20\x87\x2b\x0a\x34\xa2\x2c\xf3\xed\x76\xff\x55\x8b\x32\x84\x89\x24\xd6\x03\x60\x94\xa3\x44\x3c\x35\xf7\x55\xad\xc0\x35\x58\x43\x10\x42\xf2\xdf\x27\xc4\x05\x3c\x65\xa4\x38\x58\xbf\x38\x5a\x59\xd7\xb6\xb5\xf5\xbb\xb5\xd7\xf6\x53\x08\x0b\xaa\x39\xe7\xac\x88\xd3\x51\x41\xc5\xf5\x22\xe3\xbd\x58\x2e\xa3\x1c\x86\xee\xb3\x2e\x4d\xa6\x75\x4f\x5f\x04\xdd\x8d\x20\xdb\x88\x3a\x22\x2e\x1d\x73\xeb\x3a\xd9\x31\x82\x42\x8f\x91\x88\x2b\x3f\x6e\x66\x53\x48\xb1\x35\x86\x71\x28\xda\x97\x24\x27\x06\x6b\xbb\xcb\x6a\xce\x45\x96\x4c\x0b\xe6\x8e\x06\x10\x49\x9a\xf7\xbe\x15\x99\xbf\x12\xee\x54\x64\x3d\x8c\x83\x3a\xcd\xc4\xc7\x7d\xef\x36\x1a\x36\xb1\xc0\x39\xd8\xc7\x82\x6b\xb3\x89\x42\x11\x5a\xc0\x89\xe2\x7d\xe5\x7b\xe3\x6e\x89\xd2\x76\xd3\x46\x87\x94\x96\xf5\xcf\xf2\xd5\xb8\xf5\x06\x6b\x50\xcb\x17\x66\xcd\x38\x37\x62\x33\xb3\x9b\x91\x87\x8c\x60\xb2\x0c\xae\x8f\x0a\x67\xd0\xe1\xd2\xc2\x1e\x20\xfa\xd9\xac\xfb\x41\xb5\x26\x88\x5f\x5c\x65\xe1\x37\x45\xd4\xa5\xbb\xf6\xc5\x5f\x33\x01\x52\xcd\x06\x3f\x54\x1d\x1a\x7f\x35\xff\x16\xf5\xdb\x83\x38\x32\xed\xf8\x3d\xd5\x09\x97\xd4\xd9\x71\x29\x85\x0d\x6a\x6e\x34\x3d\x56\x3d\x64\xce\xa8\x58\xc8\x2f\x93\x3e\x74\x1c\xbf\x08\xe1\x49\x5c\x92\xc6\x96\x8a\x4e\x33\x78\x92\xf4\xbe\xec\xfa\xa4\x1b\xcf\x35\xc1\x45\x33\xdd\x7a\x2b\xc8\x39\x95\x2f\xc0\x99\xda\x6a\x46\x56\x83\xb9\x59\x02\x36\x94\xdd\x49\x0d\x16\x28\x5b\x02\xd3\xd7\xd5\x41\xad\xf3\x37\xa3\x48\xc5\x54\x2e\x0b\xe1\x36\x08\x67\xb8\xc8\xa5\x70\x5b\x84\xcb\xb2\x63\x7e\xbf\x68\x6c\x00\xb7\x43\x38\xc3\xdb\x2e\x85\x2b\x10\xae\x38\xec\x94\x2a\x96\xc3\xed\x11\xce\xb0\xb6\x32\x5c\xda\xb7\x75\x35\xe8\x9c\xcf\xa1\xce\x76\x22\xad\xbb\xf1\xfa\x9c\xc5\x9a\x38\xdf\xd5\xc2\xa9\x06\xb6\x90\xee\x6d\x16\x38\xad\xd5\x49\x9d\x8f\x41\x65\x58\x87\xd0\xcf\xf7\x3d\x37\x04\xc6\x31\x09\x7e\xd9\x9c\xe3\x5a\x3e\x50\xa4\x75\x94\x23\xfd\xaf\x7b\xba\xac\x3b\x39\x93\x58\x3b\xbe\x95\xc7\xf9\x58\xa9\xb2\x16\x1e\x8e\xfa\x96\x70\xb0\xa3\xc7\x56\x11\xdd\x28\xe4\xa1\xa1\xe5\x6a\xf5\x41\x20\xb0\x50\x31\x8f\xda\x40\xed\x09\x38\xf5\xd6\xa6\x7f\xae\x82\x3b\x82\xde\x69\xc1\xde\x29\x53\xe5\x62\x5c\xc2\xec\x2e\xbc\x06\x8b\xce\x6b\xf6\x41\xdc\x10\x1b\xea\x9f\x10\x7e\x46\xbf\x6b\x10\x32\x2b\xa3\x71\xde\x15\x27\x8a\xe8\x73\x2c\xc7\xf5\x5c\xf5\x95\x76\x65\x0c\x20\xd2\x43\x79\x7e\x2e\xfb\x24\x85\xe0\xd1\x71\xf3\xa0\x0b\xb5\x1f\xba\xe6\x87\x32\x0c\x75\xba\x29\xa6\x50\x68\x16\x60\x8d\x9b\x7a\x04\x15\xbd\x25\xe1\x2a\x5f\xaa\x5e\x87\x91\x09\xcb\x00\x1e\x6a\x6d\x28\x22\xb3\xf6\xd6\x48\x5b\xd0\xdf\x80\x3a\x36\x36\x67\xe9\xa9\xab\x74\xe8\xac\x87\x1a\x87\x2c\xac\x4f\x0a\xa0\x27\xcd\xd0\x02\x65\x41\xcc\x94\x1d\xcb\xfe\xb1\xec\xba\xf2\xf5\x5b\x91\xe4\x22\x1a\x98\x36\xea\x96\x43\xb1\x3d\xb8\xe3\x82\x00\x81\x6d\xf3\x2f\x34\x6d\x92\xac\xe5\xda\x61\xeb\xad\x77\x31\x72\x9a\x31\xd7\xd7\xf6\x4c\xde\x7f\x04\xe1\xb8\x01\x4f\xa3\xcb\x26\x16\x03\x75\xf3\xa1\xa3\xb2\x29\x89\xe6\xe9\xc0\xac\xe4\xe1\xc0\x90\xbb\xbe\x66\x6c\x88\x93\x8f\x4d\xc4\x38\x37\x3c\xe3\x3f\xe4\xbd\x34\x93\x4f\x73\x9e\x14\x4c\x39\x2e\xbc\x37\xf0\x63\xba\x66\x78\x88\x33\x78\x75\x12\xc6\xb9\xe1\xa1\x7f\x12\x1d\xdd\xc6\x71\x14\x93\x64\x40\x5a\xf1\x70\x64\x9b\xed\xee\xaa\x61\x01\x3e\x3e\xaa\x10\xdb\xdc\x90\x9c\xaf\x93\x37\x2a\x93\x53\x6e\x02\x12\x9d\x82\x22\xdb\x12\x5d\x13\x67\x3e\x69\x3e\xe7\x37\x39\x4e\x9b\x92\x5c\x98\x3a\xf0\xec\xba\x66\xf6\x2c\xd6\x60\x02\x25\x9c\xe2\x1c\x4a\x2b\xed\x2c\xbe\x62\x74\xb8\xba\x6e\xf1\x9e\x85\xb7\x2c\x22\x5c\x48\x24\x64\xf8\xfe\x47\x89\x04\x94\xd7\x13\x49\xd6\x8a\x73\xef\xf2\x56\xa3\x27\x98\x4c\xd2\x62\x73\x77\x0b\xcb\x05\xbc\xcd\xae\x19\xa1\xc5\x1a\x2c\x17\x09\xe7\xdc\x20\x9d\xdb\x98\xb7\x4d\xa2\x76\x7e\xc9\x69\x64\x12\x73\x0b\x1b\x25\x78\xb1\x5d\x75\xc6\x19\xac\xc1\x56\x29\xe1\x9c\xdf\x2a\xd1\x1f\x8d\x8e\xd1\x97\xc0\x66\xf6\x37\x48\xbb\x1d\x0e\x11\x9d\xe3\xae\xdb\x34\x01\x29\x1f\xa1\x88\xd2\x8e\x50\xca\x30\x20\x59\xd8\xa2\xa6\x0f\x2f\x62\x52\xae\x93\xc1\x72\xcb\xed\x25\x55\x3d\xfa\x48\x30\x65\xae\x9f\x00\x28\x12\x75\xac\xd5\x7e\xab\x30\x16\x35\xdd\xf4\xc9\xd0\xb4\x20\x5b\x35\x97\x61\x35\xde\xa8\xd5\xc3\x60\xef\x70\xf5\xad\x1e\x83\xa7\x65\x95\xa6\xc2\x2a\xd5\xe4\x87\x13\x5a\x5e\x51\xb1\x33\xa5\x6d\x94\x54\xbf\xa1\x86\x58\x26\x53\x7f\xdb\xe7\xb2\x6d\x5f\xdf\xa6\x26\xa5\xc8\x9e\xd8\xac\xc4\x46\x8d\x03\x23\x1a\xd0\xdb\xe0\xfd\x79\x1a\xd0\xdb\x59\x0d\xa8\xdc\x42\xd6\xed\xde\xb6\x2f\x5f\x8c\xa2\x72\xfd\xd5\x2a\x16\xe4\x97\xf3\x26\xeb\x69\x49\x95\xa1\x5f\x54\xd2\x8a\x24\xee\x29\x89\xfb\x18\x89\x29\x8a\xa3\x2c\x8a\x39\x62\xd7\xfe\x5e\x57\xf2\x4a\x4b\x5a\x41\x95\xa3\x85\x3f\x5f\x05\x82\x6a\xf5\x69\x1b\x13\x51\x2d\x68\x57\x9f\x49\x53\xfb\xf7\x1a\x32\xed\xc6\xe8\x32\x0f\xc7\x8f\x7f\xdd\xff\x2c\x87\xc3\xa3\x1c\x93\x3c\xd5\x81\xa7\x81\x08\xbb\xa0\xae\xb5\x24\xff\x85\xcf\xdf\xbb\x54\x1d\xb3\x1d\x59\xc9\x7b\xa6\x47\x2e\xf2\x87\x89\x19\xf7\x5f\x16\x74\x27\xd7\xae\x9c\x06\x4d\xfd\x02\xf2\x52\xf9\x6d\x2a\x8d\x4c\xe1\x88\xc4\x62\xc4\xe1\x7e\xab\xab\x48\x26\x31\xe3\xa0\x84\xb0\xad\x3a\x1f\xd1\x6d\xfc\x55\x75\xeb\xcc\x4e\xe7\xdf\x17\x75\xd1\xa9\xfd\xe1\x52\x1f\x7d\xb4\x21\x4a\xed\x26\x31\x99\x8c\x2e\x8f\xc2\xa3\x7e\xf8\xd2\xd5\x9f\x3f\x1d\xab\xf2\xd4\x9c\xcb\x5a\x67\x76\x6f\xd5\x7a\xfb\x45\x7b\xe1\xae\x03\x5d\x75\x92\x76\x97\xb3\xf6\x22\x40\x25\x31\x95\x0c\x92\xf4\xd0\x3c\xb5\xb5\x1a\x94\x51\xe9\xa2\x9f\x07\x3e\x7d\x28\xab\x5a\x1d\x25\xf5\x6b\x92\xd6\x4d\x6f\xd4\x10\x20\x43\xd1\x4f\xc1\xa8\xb2\x5c\x42\x0d\x9a\x0b\x02\xcd\xad\x1b\xc8\x13\x16\x26\x05\xa3\xa8\x52\xf8\xb3\xce\x44\x07\x65\xa9\x65\xce\x8a\xae\xa1\x32\x5d\x68\xb9\x11\x4a\xd6\xc8\x2d\xb7\x7e\x55\x33\xa3\x30\x17\x5a\xee\x84\x42\x40\x72\xcb\xc2\x6b\x69\x95\xe2\x42\xcb\xbd\xe8\x46\xee\xb5\x84\xa5\x17\x4b\x08\x9a\x87\xd9\x6f\xb7\xbe\xd9\xd4\xae\x49\x8a\x14\x57\xe6\x8a\x11\x85\xcb\xf2\x5f\x74\x54\xf7\xfa\x33\xeb\x57\xf2\xba\xf7\x1a\xda\xb5\xec\xbd\x01\xb3\xa2\x69\x4b\x5c\xd7\xb3\xb3\xaa\xd7\x38\xab\x67\xc6\x9a\xb8\x60\x36\xee\x81\xc1\x9b\x61\xd8\x99\x10\x67\xc0\x5b\x0a\x85\x4f\xcd\xae\xc7\x5a\x06\xc5\x22\x45\x02\xc3\x02\xf3\x91\x19\xb4\x1e\x4d\x21\x45\xe7\x1f\xf3\x0b\x5b\x2c\xe5\x1d\xf9\xb0\xc4\x72\xd7\x91\x0f\x5b\xaa\x08\xed\xde\x18\x1e\xb7\xc0\xea\x5b\xc3\xbb\xde\x5b\x66\x52\xd7\xf8\xb0\xa9\x2d\xa6\x6c\x6c\x32\xda\x6d\xf4\xf9\xb4\x6e\xcb\x61\x50\xdd\xf9\x8d\x7b\x00\x44\x8c\xb0\x9a\x4d\x7f\xff\xa4\x8d\x3c\xa7\x4b\x75\x54\x49\xfa\xd4\x1c\x7e\x18\xb6\x84\xf9\xca\xb8\x30\x08\x70\x41\xa0\x56\x80\x28\x0e\x7b\xd5\xbe\xae\xe6\x1a\x61\xde\x12\x16\x6e\xe1\xf9\x25\x43\xb4\xbc\x7a\x9a\xed\x10\x70\x91\xb7\xc0\x3f\xf7\xa1\xd1\xac\x37\x94\x3a\x26\xdc\x64\x92\x79\x57\xbb\xbb\x9b\x15\xea\xb9\xbd\xdf\x45\x7e\xe3\xb5\xe3\xd7\x5a\x00\x5a\x09\x9d\xa2\x17\xc4\xbf\xda\xef\xa2\xd7\xb1\x6c\x57\xb4\x14\x1b\x0a\x1c\x25\xed\x8b\x4f\x09\xbb\xce\x77\xe3\x0e\x39\x47\xc9\x73\x79\xba\xf8\x5b\x92\xba\x53\x87\x87\x2c\xe6\xdb\x1c\xe2\x1b\x79\xe7\xf1\xe3\x34\x5c\xf3\x46\x3d\xbd\xff\x2f\x00\x00\xff\xff\xd5\x63\x05\x1e\xf0\x41\x03\x00") -func distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798CssBytes() ([]byte, error) { +func distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8CssBytes() ([]byte, error) { return bindataRead( - _distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798Css, - "dist/assets/nomad-ui-01a2bba56ddad0865ef1cc9617172798.css", + _distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8Css, + "dist/assets/nomad-ui-2ffef17efbbc4361902d6cc1d42ce2b8.css", ) } -func distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798Css() (*asset, error) { - bytes, err := distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798CssBytes() +func distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8Css() (*asset, error) { + bytes, err := distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8CssBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "dist/assets/nomad-ui-01a2bba56ddad0865ef1cc9617172798.css", size: 213459, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} + info := bindataFileInfo{name: "dist/assets/nomad-ui-2ffef17efbbc4361902d6cc1d42ce2b8.css", size: 213488, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -408,7 +408,7 @@ func distImagesIconsWarningSvg() (*asset, error) { return a, nil } -var _distIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x94\x51\x6f\xab\x36\x14\xc7\xdf\xfb\x29\x18\x52\xde\x46\x01\x27\x40\x22\x85\x48\x59\x93\x5d\x75\x9a\xd2\xdc\xdc\x74\xbb\xf7\xa9\x3a\xb6\x0f\xe0\xd5\xd8\xcc\x36\x69\xf3\xed\x27\x42\x92\xd1\xbb\xae\xba\x4f\x04\xfc\x3b\x3f\x38\xff\x1c\x7b\xfe\xd3\xea\xe1\x6e\xff\x6d\xbb\xf6\x2a\x57\xcb\xc5\xcd\xbc\xbf\x78\xde\xbc\x42\xe0\xdd\x0f\xcf\x9b\xd7\xe8\xc0\x63\x15\x18\x8b\x2e\xf7\x5b\x57\x04\x53\x7f\xb8\x54\x39\xd7\x04\xf8\x77\x2b\x0e\xb9\xff\x35\x78\x5c\x06\x77\xba\x6e\xc0\x09\x2a\xd1\xf7\x98\x56\x0e\x95\xcb\xfd\xfb\x75\x8e\xbc\xc4\x4b\xa5\x13\x4e\xe2\x62\xa3\x6b\xe0\xf3\xb0\xbf\x19\x28\x15\xd4\x98\xfb\x1c\x2d\x33\xa2\x71\x42\xab\x81\xc8\xff\x2f\x78\x10\xf8\xd2\x68\xe3\x06\xd4\x8b\xe0\xae\xca\x39\x1e\x04\xc3\xe0\x74\xf3\xb3\x27\x94\x70\x02\x64\x60\x19\x48\xcc\x63\x7f\x71\x73\x32\xdd\x0c\x55\xaa\xfb\xa2\xa0\x15\x21\xd3\xaa\x10\x65\x88\xea\x20\x8c\x56\x35\xaa\xa1\x7d\x94\xfd\x32\x22\xa4\xd6\xbc\x95\xb8\x35\x58\x88\xd7\x11\x21\xa3\xf1\x72\x44\xc8\x45\xd0\x3d\x20\x77\x23\x42\x06\x86\x2b\xd4\x18\xcd\x5b\xd6\x35\x76\xc5\x8c\xd6\xee\x71\xf7\xfb\x15\x09\x5b\x11\x5e\x17\xa5\x66\xd0\xd1\xfb\x63\x83\x57\x02\x5a\xa7\xaf\xc4\xba\xa6\x68\xd6\x9b\x3f\xce\xab\xa7\xef\xfb\x75\xbd\xdc\x3f\xee\xd6\x5f\x86\xcf\xb0\xe3\x02\xa3\x5b\x27\x54\x79\xba\xa2\x09\x2c\x9a\x2e\xa7\x9e\x73\xa6\xc5\x51\xb6\x3a\x6b\xbf\xee\xd7\x9b\xd5\xd3\x76\xf7\xb0\x7f\xe8\xe6\xe4\x8d\x6b\x05\xee\x5c\x53\x80\xb4\xff\x16\x3d\xfd\xf6\xf9\x71\xbd\xfb\xf6\x74\xbf\xd9\xaf\x3f\xed\x96\xfb\xfb\x87\xcd\x3b\xea\xe5\x76\x3b\x94\x51\xa9\xd9\xb3\x50\xe5\xe7\x16\x8d\x40\x3b\x28\x38\xd1\xb5\x30\x50\xe2\x17\x86\x0a\x8c\xd0\xd7\x0c\x6c\x0d\x52\xde\xc9\xd6\x3a\x34\xd7\x2c\x7a\xf6\x4f\xe1\xaa\x0d\xd4\x68\x1b\x60\xff\xe7\xeb\x98\xbd\x7e\x46\xf5\xc1\xfa\x0e\x4b\xa1\xdf\x00\x97\x0e\xfa\x2c\x99\x14\x41\x4f\x0f\xdb\x69\xad\x50\xe5\xd6\xe8\xd7\xe3\xf7\xe6\xd6\xe2\x0a\x0b\x68\xa5\xdb\x82\xb5\xae\x32\xba\x2d\xab\x77\xf5\xaf\xdd\x4c\x2f\x9b\x46\x8a\xfe\xdf\xff\x24\x35\x05\xf9\x36\x71\xdf\x0b\xcf\x63\x3c\x97\x42\x3d\x7b\x06\x65\xee\x5b\x77\x94\x68\x2b\x44\xe7\x7b\x95\xc1\x22\xf7\xbb\x69\x02\x6b\xd1\xd9\xf0\x80\x8a\x6b\x13\x64\x13\x3a\x19\x03\x9b\x44\x71\x34\x9e\x16\x34\xe5\xe3\x49\x8a\xd3\x04\x28\x1f\x53\x9a\x8c\xd3\x5b\x66\xed\x65\xab\xfd\xa0\xf9\x32\xfa\x41\x14\x03\xa1\x14\x92\x94\x73\xe0\xd1\x34\x4d\xb0\x88\x19\x9b\xa5\x71\x16\x67\x24\x9b\x4d\xdf\x77\x0b\xd6\xed\x73\x77\x6c\x30\xf7\x45\x0d\x25\x86\x8d\x2a\x87\xaf\x09\x0b\x38\x74\x50\x10\x33\x92\x90\x0c\x32\x88\x32\x1e\x8f\x23\x64\x14\x0a\x86\x59\x82\x93\x34\x4e\x20\x9d\xdd\x9e\x0a\x2f\xc1\x74\xc7\x59\x78\x39\xcf\xe6\x54\xf3\x63\xff\xea\x73\x6c\xfd\x19\xe3\x59\xc3\xde\x8b\x69\x42\x13\xc2\x66\x50\xf0\x28\xa3\x71\x91\x15\x80\xd1\x2c\x1b\xcf\x92\x82\x70\x0a\x05\xc9\x6e\xff\xb2\xfe\x62\x1e\xf6\x92\xc5\x87\xc6\x6b\x3c\x3c\x9d\x4e\xa2\x34\x21\x48\xa6\x3c\x4e\x61\x4c\xe9\x8c\xc5\x51\x42\x26\x84\x60\x4c\x59\xfa\x9d\xb3\x97\x72\x71\xf0\x04\xcf\xfd\x7e\xe8\x28\x58\xc1\x02\x6e\x74\xc3\xf5\x8b\x0a\x5e\xb4\xa9\x2b\x2d\xb1\x2b\xe3\xe2\x70\x6a\x34\xec\x3b\x9d\x87\xfd\x99\xfe\x4f\x00\x00\x00\xff\xff\x54\x6f\x66\x14\xeb\x05\x00\x00") +var _distIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x94\xdf\x72\xa3\x36\x14\x87\xef\xf3\x14\x94\x19\xdf\x95\x60\x04\x06\x7b\xc6\x78\xc6\x8d\xe9\x4e\x3a\x1d\xc7\xeb\x75\xda\xdd\xab\x8c\xfe\x1c\x81\x1a\x21\x51\x49\x38\xf1\xdb\x77\x30\x36\x25\xdb\x34\xb3\x57\x18\xf4\x9d\x0f\xce\xcf\x47\x5a\xfe\xb4\x79\xb8\x3b\x7c\xdb\x15\x5e\xe5\x6a\xb9\xba\x59\xf6\x17\xcf\x5b\x56\x80\x59\xf7\xc3\xf3\x96\x35\x38\xec\xd1\x0a\x1b\x0b\x2e\xf7\x5b\xc7\x83\xb9\x3f\x5e\xaa\x9c\x6b\x02\xf8\xbb\x15\xc7\xdc\xff\x1a\x3c\xae\x83\x3b\x5d\x37\xd8\x09\x22\xc1\xf7\xa8\x56\x0e\x94\xcb\xfd\xfb\x22\x07\x56\xc2\xb5\xd2\x09\x27\x61\xb5\xd5\x35\x66\xcb\xb0\xbf\x19\x29\x15\xae\x21\xf7\x19\x58\x6a\x44\xe3\x84\x56\x23\x91\xff\x5f\xf0\x28\xe0\xa5\xd1\xc6\x8d\xa8\x17\xc1\x5c\x95\x33\x38\x0a\x0a\xc1\xf9\xe6\x67\x4f\x28\xe1\x04\x96\x81\xa5\x58\x42\x1e\xf9\xab\x9b\xb3\xe9\x66\xac\x52\xdd\x17\x05\xad\x08\xa9\x56\x5c\x94\x21\xa8\xa3\x30\x5a\xd5\xa0\xc6\xf6\x49\xf6\xcb\x04\xa1\x5a\xb3\x56\xc2\xce\x00\x17\xaf\x13\x84\x26\xf1\x7a\x82\xd0\x55\xd0\x3d\x40\x77\x13\x84\x46\x86\x01\x6a\x8c\x66\x2d\xed\x1a\x1b\x30\xa3\xb5\x7b\xdc\xff\x3e\x20\x61\x2b\xc2\x61\x51\x6a\x8a\x3b\xfa\x70\x6a\x60\x20\x70\xeb\xf4\x40\x14\x35\x01\x53\x6c\xff\xb8\xac\x9e\xbf\xef\xd7\x62\x7d\x78\xdc\x17\x5f\xc6\xcf\xa0\xe3\x02\xa3\x5b\x27\x54\x79\xbe\x82\x09\x2c\x98\x2e\xa7\x9e\x73\xa6\x85\x49\xb6\xb9\x68\xbf\x1e\x8a\xed\xe6\x69\xb7\x7f\x38\x3c\x74\x73\xf2\xc6\xb5\xc1\xee\x52\xc3\xb1\xb4\xff\x16\x3d\xfd\xf6\xf9\xb1\xd8\x7f\x7b\xba\xdf\x1e\x8a\x4f\xfb\xf5\xe1\xfe\x61\xfb\x8e\x7a\xbd\xdb\x8d\x65\x44\x6a\xfa\x2c\x54\xf9\xb9\x05\x23\xc0\x8e\x0a\xce\x74\x2d\x0c\x2e\xe1\x0b\x05\x85\x8d\xd0\x43\x06\xb6\xc6\x52\xde\xc9\xd6\x3a\x30\x43\x16\x3d\xfb\xa7\x70\xd5\x16\xd7\x60\x1b\x4c\xff\xcf\xd7\x31\x07\xfd\x0c\xea\x83\xf5\x3d\x94\x42\xbf\x01\xae\x1d\xf4\x59\x52\x29\x82\x9e\x1e\xb7\xd3\x5a\xa1\xca\x9d\xd1\xaf\xa7\xef\xcd\xad\x85\x0d\x70\xdc\x4a\xb7\xc3\xd6\xba\xca\xe8\xb6\xac\xde\xd5\xbf\x76\x33\xbd\x6e\x1a\x29\xfa\x7f\xff\x93\xd4\x04\xcb\xb7\x89\xfb\x5e\x78\x19\xe3\xa5\x14\xea\xd9\x33\x20\x73\xdf\xba\x93\x04\x5b\x01\x38\xdf\xab\x0c\xf0\xdc\xef\xa6\x09\x5b\x0b\xce\x86\x47\x50\x4c\x9b\x20\x4b\x48\x12\x63\x9a\x4c\xa3\x69\x3c\xe7\x24\x65\x71\x92\xc2\x7c\x86\x09\x8b\x09\x99\xc5\xe9\x2d\xb5\xf6\xba\xd5\x7e\xd0\x7c\x1d\xfd\x00\x71\x0e\x3c\xca\x80\x13\x42\x93\x38\x8d\x16\x53\xc4\x52\x4a\x23\x96\x20\x0a\x88\xcc\xdf\x77\x0b\xda\xed\x73\x77\x6a\x20\xf7\x45\x8d\x4b\x08\x1b\x55\x8e\x5f\x13\x72\x7c\xec\xa0\x20\xa2\x68\x86\x32\x9c\xe1\x69\xc6\xa2\x78\x0a\x94\x60\x4e\x21\x9b\x41\x92\x46\x33\x9c\x2e\x6e\xcf\x85\xd7\x60\xba\xe3\x2c\xbc\x9e\x67\x4b\xa2\xd9\xa9\x7f\xf5\x25\xb6\xfe\x8c\xf1\xac\xa1\xef\xc5\x94\x90\x19\xa2\x0b\xcc\xd9\x34\x23\x11\xcf\x38\x86\xe9\x22\x8b\x17\x33\x8e\x18\xc1\x1c\x65\xb7\x7f\x59\x7f\xb5\x0c\x7b\xc9\xea\x43\xe3\x10\x0f\x4b\xe7\xc9\x34\x9d\x21\x40\x73\x16\xa5\x38\x26\x64\x41\xa3\xe9\x0c\x25\x08\x41\x44\x68\xfa\x9d\xb3\x97\x32\x71\xf4\x04\xcb\xfd\x7e\xe8\x08\xb6\x82\x06\xcc\xe8\x86\xe9\x17\x15\xbc\x68\x53\x57\x5a\x42\x57\xc6\xc4\xf1\xdc\x68\xd8\x77\xba\x0c\xfb\x33\xfd\x9f\x00\x00\x00\xff\xff\xd0\xd2\xd3\x1b\xeb\x05\x00\x00") func distIndexHtmlBytes() ([]byte, error) { return bindataRead( @@ -501,7 +501,7 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ "dist/assets/auto-import-fastboot-d41d8cd98f00b204e9800998ecf8427e.js": distAssetsAutoImportFastbootD41d8cd98f00b204e9800998ecf8427eJs, - "dist/assets/nomad-ui-01a2bba56ddad0865ef1cc9617172798.css": distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798Css, + "dist/assets/nomad-ui-2ffef17efbbc4361902d6cc1d42ce2b8.css": distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8Css, "dist/assets/nomad-ui-d6840652e28d16a3bb9c1052422e1bc6.js": distAssetsNomadUiD6840652e28d16a3bb9c1052422e1bc6Js, "dist/assets/vendor-4b52c9afd07b1f7fae097395f2dbaf27.js": distAssetsVendor4b52c9afd07b1f7fae097395f2dbaf27Js, "dist/assets/vendor-74b43ac401038fb6d346e85abd3bb536.css": distAssetsVendor74b43ac401038fb6d346e85abd3bb536Css, @@ -563,7 +563,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "dist": &bintree{nil, map[string]*bintree{ "assets": &bintree{nil, map[string]*bintree{ "auto-import-fastboot-d41d8cd98f00b204e9800998ecf8427e.js": &bintree{distAssetsAutoImportFastbootD41d8cd98f00b204e9800998ecf8427eJs, map[string]*bintree{}}, - "nomad-ui-01a2bba56ddad0865ef1cc9617172798.css": &bintree{distAssetsNomadUi01a2bba56ddad0865ef1cc9617172798Css, map[string]*bintree{}}, + "nomad-ui-2ffef17efbbc4361902d6cc1d42ce2b8.css": &bintree{distAssetsNomadUi2ffef17efbbc4361902d6cc1d42ce2b8Css, map[string]*bintree{}}, "nomad-ui-d6840652e28d16a3bb9c1052422e1bc6.js": &bintree{distAssetsNomadUiD6840652e28d16a3bb9c1052422e1bc6Js, map[string]*bintree{}}, "vendor-4b52c9afd07b1f7fae097395f2dbaf27.js": &bintree{distAssetsVendor4b52c9afd07b1f7fae097395f2dbaf27Js, map[string]*bintree{}}, "vendor-74b43ac401038fb6d346e85abd3bb536.css": &bintree{distAssetsVendor74b43ac401038fb6d346e85abd3bb536Css, map[string]*bintree{}}, diff --git a/nomad/structs/structs.generated.go b/nomad/structs/structs.generated.go new file mode 100644 index 000000000000..18755abe684b --- /dev/null +++ b/nomad/structs/structs.generated.go @@ -0,0 +1,105887 @@ +// Code generated by codecgen - DO NOT EDIT. + +package structs + +import ( + "errors" + pkg1_structs "github.com/hashicorp/nomad/plugins/shared/structs" + pkg2_raft "github.com/hashicorp/raft" + codec1978 "github.com/ugorji/go/codec" + "net" + "runtime" + "strconv" + "time" +) + +const ( + // ----- content types ---- + codecSelferCcUTF8100 = 1 + codecSelferCcRAW100 = 255 + // ----- value types used ---- + codecSelferValueTypeArray100 = 10 + codecSelferValueTypeMap100 = 9 + codecSelferValueTypeString100 = 6 + codecSelferValueTypeInt100 = 2 + codecSelferValueTypeUint100 = 3 + codecSelferValueTypeFloat100 = 4 + codecSelferBitsize100 = uint8(32 << (^uint(0) >> 63)) +) + +var ( + errCodecSelferOnlyMapOrArrayEncodeToStruct100 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer100 struct{} + +func init() { + if codec1978.GenVersion != 10 { + _, file, _, _ := runtime.Caller(0) + panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) + } + if false { + var _ byte = 0 // reference the types, but skip this branch at build/run time + var v0 pkg1_structs.Attribute + var v1 pkg2_raft.ServerID + var v2 net.IP + var v3 time.Time + _, _, _, _ = v0, v1, v2, v3 + } +} + +func (x *BatchFuture) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *BatchFuture) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *BatchFuture) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *BatchFuture) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x Bitmap) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encBitmap((Bitmap)(x), e) + } + } +} + +func (x *Bitmap) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decBitmap((*Bitmap)(x), d) + } +} + +func (x *DeviceAccounter) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeviceAccounter) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeviceAccounter) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeviceAccounter) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeviceAccounterInstance) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Device == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Device == nil { + r.EncodeNil() + } else { + x.Device.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Device\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Device == nil { + r.EncodeNil() + } else { + x.Device.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.Instances, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Instances\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) + } + r.WriteMapElemValue() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.Instances, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeviceAccounterInstance) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeviceAccounterInstance) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Device": + if r.TryDecodeAsNil() { + if true && x.Device != nil { + x.Device = nil + } + } else { + if x.Device == nil { + x.Device = new(NodeDeviceResource) + } + + x.Device.CodecDecodeSelf(d) + } + case "Instances": + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.Instances, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeviceAccounterInstance) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Device != nil { + x.Device = nil + } + } else { + if x.Device == nil { + x.Device = new(NodeDeviceResource) + } + + x.Device.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.Instances, d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x DiffType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *DiffType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (DiffType)(r.DecodeString()) + } +} + +func (x *JobDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringUint64V(x.Updates, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Updates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) + } + r.WriteMapElemValue() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringUint64V(x.Updates, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) + } + } + case "Updates": + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + z.F.DecMapStringUint64X(&x.Updates, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + z.F.DecMapStringUint64X(&x.Updates, d) + } + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskGroupDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encTaskGroupDiffs((TaskGroupDiffs)(x), e) + } + } +} + +func (x *TaskGroupDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decTaskGroupDiffs((*TaskGroupDiffs)(x), d) + } +} + +func (x *TaskDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Annotations, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Annotations, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + case "Annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Annotations, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Annotations, d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encTaskDiffs((TaskDiffs)(x), e) + } + } +} + +func (x *TaskDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decTaskDiffs((*TaskDiffs)(x), d) + } +} + +func (x *ObjectDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ObjectDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ObjectDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ObjectDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x ObjectDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encObjectDiffs((ObjectDiffs)(x), e) + } + } +} + +func (x *ObjectDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decObjectDiffs((*ObjectDiffs)(x), d) + } +} + +func (x *FieldDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Old\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Old`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.New))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"New\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `New`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.New))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Annotations, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Annotations, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FieldDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *FieldDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Old": + if r.TryDecodeAsNil() { + x.Old = "" + } else { + x.Old = (string)(r.DecodeString()) + } + case "New": + if r.TryDecodeAsNil() { + x.New = "" + } else { + x.New = (string)(r.DecodeString()) + } + case "Annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Annotations, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FieldDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Old = "" + } else { + x.Old = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.New = "" + } else { + x.New = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Annotations, d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x FieldDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encFieldDiffs((FieldDiffs)(x), e) + } + } +} + +func (x *FieldDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decFieldDiffs((*FieldDiffs)(x), d) + } +} + +func (x *NetworkIndex) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AvailNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.AvailNetworks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AvailNetworks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AvailNetworks`) + } + r.WriteMapElemValue() + if x.AvailNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.AvailNetworks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AvailBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.AvailBandwidth, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AvailBandwidth\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AvailBandwidth`) + } + r.WriteMapElemValue() + if x.AvailBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.AvailBandwidth, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UsedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UsedPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UsedPorts`) + } + r.WriteMapElemValue() + if x.UsedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UsedBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.UsedBandwidth, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UsedBandwidth\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UsedBandwidth`) + } + r.WriteMapElemValue() + if x.UsedBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.UsedBandwidth, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NetworkIndex) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NetworkIndex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AvailNetworks": + if r.TryDecodeAsNil() { + x.AvailNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.AvailNetworks), d) + } + } + case "AvailBandwidth": + if r.TryDecodeAsNil() { + x.AvailBandwidth = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.AvailBandwidth, d) + } + } + case "UsedPorts": + if r.TryDecodeAsNil() { + x.UsedPorts = nil + } else { + if false { + } else { + h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) + } + } + case "UsedBandwidth": + if r.TryDecodeAsNil() { + x.UsedBandwidth = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.UsedBandwidth, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NetworkIndex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AvailNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.AvailNetworks), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AvailBandwidth = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.AvailBandwidth, d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UsedPorts = nil + } else { + if false { + } else { + h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UsedBandwidth = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.UsedBandwidth, d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *DriverInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Attributes, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Attributes, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Detected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Detected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Detected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Detected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdateTime) + } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { + z.EncExtension(x.UpdateTime, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdateTime) + } else { + z.EncFallback(x.UpdateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdateTime) + } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { + z.EncExtension(x.UpdateTime, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdateTime) + } else { + z.EncFallback(x.UpdateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DriverInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DriverInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Attributes, d) + } + } + case "Detected": + if r.TryDecodeAsNil() { + x.Detected = false + } else { + x.Detected = (bool)(r.DecodeBool()) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "HealthDescription": + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + case "UpdateTime": + if r.TryDecodeAsNil() { + x.UpdateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdateTime = r.DecodeTime() + } else if yyxt10 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt10 != nil { + z.DecExtension(x.UpdateTime, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdateTime) + } else { + z.DecFallback(&x.UpdateTime, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DriverInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Attributes, d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Detected = false + } else { + x.Detected = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdateTime = r.DecodeTime() + } else if yyxt18 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt18 != nil { + z.DecExtension(x.UpdateTime, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdateTime) + } else { + z.DecFallback(&x.UpdateTime, false) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftServer) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { + z.EncExtension(x.ID, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.EncExtension(x.ID, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Address)); yyxt10 != nil { + z.EncExtension(x.Address, yyxt10) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Address)); yyxt11 != nil { + z.EncExtension(x.Address, yyxt11) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Leader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Voter)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Voter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Voter`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Voter)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RaftProtocol\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RaftProtocol`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftServer) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftServer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.DecExtension(x.ID, yyxt5) + } else { + x.ID = (pkg2_raft.ServerID)(r.DecodeString()) + } + } + case "Node": + if r.TryDecodeAsNil() { + x.Node = "" + } else { + x.Node = (string)(r.DecodeString()) + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Address)); yyxt8 != nil { + z.DecExtension(x.Address, yyxt8) + } else { + x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) + } + } + case "Leader": + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + case "Voter": + if r.TryDecodeAsNil() { + x.Voter = false + } else { + x.Voter = (bool)(r.DecodeBool()) + } + case "RaftProtocol": + if r.TryDecodeAsNil() { + x.RaftProtocol = "" + } else { + x.RaftProtocol = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftServer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.ID)); yyxt14 != nil { + z.DecExtension(x.ID, yyxt14) + } else { + x.ID = (pkg2_raft.ServerID)(r.DecodeString()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Node = "" + } else { + x.Node = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Address)); yyxt17 != nil { + z.DecExtension(x.Address, yyxt17) + } else { + x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Voter = false + } else { + x.Voter = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RaftProtocol = "" + } else { + x.RaftProtocol = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftPeerByAddressRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Address)); yyxt4 != nil { + z.EncExtension(x.Address, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.EncExtension(x.Address, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftPeerByAddressRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftPeerByAddressRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.DecExtension(x.Address, yyxt5) + } else { + x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftPeerByAddressRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.Address)); yyxt12 != nil { + z.DecExtension(x.Address, yyxt12) + } else { + x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftPeerByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { + z.EncExtension(x.ID, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.EncExtension(x.ID, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftPeerByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftPeerByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.DecExtension(x.ID, yyxt5) + } else { + x.ID = (pkg2_raft.ServerID)(r.DecodeString()) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftPeerByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.ID)); yyxt12 != nil { + z.DecExtension(x.ID, yyxt12) + } else { + x.ID = (pkg2_raft.ServerID)(r.DecodeString()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy7 := &x.Config + yy7.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + yy9 := &x.Config + yy9.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CAS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = AutopilotConfig{} + } else { + x.Config.CodecDecodeSelf(d) + } + case "CAS": + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = AutopilotConfig{} + } else { + x.Config.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CleanupDeadServers)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CleanupDeadServers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CleanupDeadServers`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CleanupDeadServers)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt7 != nil { + z.EncExtension(x.ServerStabilizationTime, yyxt7) + } else { + r.EncodeInt(int64(x.ServerStabilizationTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerStabilizationTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerStabilizationTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt8 != nil { + z.EncExtension(x.ServerStabilizationTime, yyxt8) + } else { + r.EncodeInt(int64(x.ServerStabilizationTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt10 != nil { + z.EncExtension(x.LastContactThreshold, yyxt10) + } else { + r.EncodeInt(int64(x.LastContactThreshold)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContactThreshold\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContactThreshold`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt11 != nil { + z.EncExtension(x.LastContactThreshold, yyxt11) + } else { + r.EncodeInt(int64(x.LastContactThreshold)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MaxTrailingLogs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxTrailingLogs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxTrailingLogs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MaxTrailingLogs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnableRedundancyZones)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnableRedundancyZones\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnableRedundancyZones`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnableRedundancyZones)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.DisableUpgradeMigration)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisableUpgradeMigration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisableUpgradeMigration`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.DisableUpgradeMigration)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnableCustomUpgrades)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnableCustomUpgrades\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnableCustomUpgrades`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnableCustomUpgrades)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CleanupDeadServers": + if r.TryDecodeAsNil() { + x.CleanupDeadServers = false + } else { + x.CleanupDeadServers = (bool)(r.DecodeBool()) + } + case "ServerStabilizationTime": + if r.TryDecodeAsNil() { + x.ServerStabilizationTime = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt6 != nil { + z.DecExtension(x.ServerStabilizationTime, yyxt6) + } else { + x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) + } + } + case "LastContactThreshold": + if r.TryDecodeAsNil() { + x.LastContactThreshold = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt8 != nil { + z.DecExtension(x.LastContactThreshold, yyxt8) + } else { + x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) + } + } + case "MaxTrailingLogs": + if r.TryDecodeAsNil() { + x.MaxTrailingLogs = 0 + } else { + x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) + } + case "EnableRedundancyZones": + if r.TryDecodeAsNil() { + x.EnableRedundancyZones = false + } else { + x.EnableRedundancyZones = (bool)(r.DecodeBool()) + } + case "DisableUpgradeMigration": + if r.TryDecodeAsNil() { + x.DisableUpgradeMigration = false + } else { + x.DisableUpgradeMigration = (bool)(r.DecodeBool()) + } + case "EnableCustomUpgrades": + if r.TryDecodeAsNil() { + x.EnableCustomUpgrades = false + } else { + x.EnableCustomUpgrades = (bool)(r.DecodeBool()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CleanupDeadServers = false + } else { + x.CleanupDeadServers = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerStabilizationTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt18 != nil { + z.DecExtension(x.ServerStabilizationTime, yyxt18) + } else { + x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastContactThreshold = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt20 != nil { + z.DecExtension(x.LastContactThreshold, yyxt20) + } else { + x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxTrailingLogs = 0 + } else { + x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnableRedundancyZones = false + } else { + x.EnableRedundancyZones = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisableUpgradeMigration = false + } else { + x.DisableUpgradeMigration = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnableCustomUpgrades = false + } else { + x.EnableCustomUpgrades = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.PreemptionConfig + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptionConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionConfig`) + } + r.WriteMapElemValue() + yy6 := &x.PreemptionConfig + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PreemptionConfig": + if r.TryDecodeAsNil() { + x.PreemptionConfig = PreemptionConfig{} + } else { + x.PreemptionConfig.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptionConfig = PreemptionConfig{} + } else { + x.PreemptionConfig.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.SchedulerConfig == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SchedulerConfig == nil { + r.EncodeNil() + } else { + x.SchedulerConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerConfig`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.SchedulerConfig == nil { + r.EncodeNil() + } else { + x.SchedulerConfig.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SchedulerConfig": + if r.TryDecodeAsNil() { + if true && x.SchedulerConfig != nil { + x.SchedulerConfig = nil + } + } else { + if x.SchedulerConfig == nil { + x.SchedulerConfig = new(SchedulerConfiguration) + } + + x.SchedulerConfig.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SchedulerConfig != nil { + x.SchedulerConfig = nil + } + } else { + if x.SchedulerConfig == nil { + x.SchedulerConfig = new(SchedulerConfiguration) + } + + x.SchedulerConfig.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerSetConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Updated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Updated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Updated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Updated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerSetConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Updated": + if r.TryDecodeAsNil() { + x.Updated = false + } else { + x.Updated = (bool)(r.DecodeBool()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Updated = false + } else { + x.Updated = (bool)(r.DecodeBool()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *PreemptionConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SystemSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SystemSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SystemSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SystemSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.BatchSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BatchSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BatchSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.BatchSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ServiceSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServiceSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ServiceSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PreemptionConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PreemptionConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SystemSchedulerEnabled": + if r.TryDecodeAsNil() { + x.SystemSchedulerEnabled = false + } else { + x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) + } + case "BatchSchedulerEnabled": + if r.TryDecodeAsNil() { + x.BatchSchedulerEnabled = false + } else { + x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) + } + case "ServiceSchedulerEnabled": + if r.TryDecodeAsNil() { + x.ServiceSchedulerEnabled = false + } else { + x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PreemptionConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SystemSchedulerEnabled = false + } else { + x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BatchSchedulerEnabled = false + } else { + x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServiceSchedulerEnabled = false + } else { + x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Config + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + yy6 := &x.Config + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CAS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Config": + if r.TryDecodeAsNil() { + x.Config = SchedulerConfiguration{} + } else { + x.Config.CodecDecodeSelf(d) + } + case "CAS": + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = SchedulerConfiguration{} + } else { + x.Config.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceCheck) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(18) + } else { + r.WriteMapStart(18) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Command\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Args, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) + } + r.WriteMapElemValue() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Args, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Protocol\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PortLabel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AddressMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.Interval)); yyxt28 != nil { + z.EncExtension(x.Interval, yyxt28) + } else { + r.EncodeInt(int64(x.Interval)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) + } + r.WriteMapElemValue() + if false { + } else if yyxt29 := z.Extension(z.I2Rtid(x.Interval)); yyxt29 != nil { + z.EncExtension(x.Interval, yyxt29) + } else { + r.EncodeInt(int64(x.Interval)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.Timeout)); yyxt31 != nil { + z.EncExtension(x.Timeout, yyxt31) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.Timeout)); yyxt32 != nil { + z.EncExtension(x.Timeout, yyxt32) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InitialStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InitialStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.TLSSkipVerify)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSSkipVerify\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSSkipVerify`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.TLSSkipVerify)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Method\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Header == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicestring((map[string][]string)(x.Header), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Header\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Header`) + } + r.WriteMapElemValue() + if x.Header == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicestring((map[string][]string)(x.Header), e) + } + } + } + var yyn45 bool + if x.CheckRestart == nil { + yyn45 = true + goto LABEL45 + } + LABEL45: + if yyr2 || yy2arr2 { + if yyn45 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.CheckRestart == nil { + r.EncodeNil() + } else { + x.CheckRestart.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CheckRestart\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CheckRestart`) + } + r.WriteMapElemValue() + if yyn45 { + r.EncodeNil() + } else { + if x.CheckRestart == nil { + r.EncodeNil() + } else { + x.CheckRestart.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GRPCService\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCService`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.GRPCUseTLS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GRPCUseTLS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCUseTLS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.GRPCUseTLS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceCheck) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceCheck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Command": + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + case "Args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Args, d) + } + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + case "PortLabel": + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + case "AddressMode": + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + case "Interval": + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Interval)); yyxt14 != nil { + z.DecExtension(x.Interval, yyxt14) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + case "Timeout": + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { + z.DecExtension(x.Timeout, yyxt16) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + case "InitialStatus": + if r.TryDecodeAsNil() { + x.InitialStatus = "" + } else { + x.InitialStatus = (string)(r.DecodeString()) + } + case "TLSSkipVerify": + if r.TryDecodeAsNil() { + x.TLSSkipVerify = false + } else { + x.TLSSkipVerify = (bool)(r.DecodeBool()) + } + case "Method": + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + case "Header": + if r.TryDecodeAsNil() { + x.Header = nil + } else { + if false { + } else { + h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) + } + } + case "CheckRestart": + if r.TryDecodeAsNil() { + if true && x.CheckRestart != nil { + x.CheckRestart = nil + } + } else { + if x.CheckRestart == nil { + x.CheckRestart = new(CheckRestart) + } + + x.CheckRestart.CodecDecodeSelf(d) + } + case "GRPCService": + if r.TryDecodeAsNil() { + x.GRPCService = "" + } else { + x.GRPCService = (string)(r.DecodeString()) + } + case "GRPCUseTLS": + if r.TryDecodeAsNil() { + x.GRPCUseTLS = false + } else { + x.GRPCUseTLS = (bool)(r.DecodeBool()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceCheck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Args, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.Interval)); yyxt37 != nil { + z.DecExtension(x.Interval, yyxt37) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt39 := z.Extension(z.I2Rtid(x.Timeout)); yyxt39 != nil { + z.DecExtension(x.Timeout, yyxt39) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InitialStatus = "" + } else { + x.InitialStatus = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSSkipVerify = false + } else { + x.TLSSkipVerify = (bool)(r.DecodeBool()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Header = nil + } else { + if false { + } else { + h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CheckRestart != nil { + x.CheckRestart = nil + } + } else { + if x.CheckRestart == nil { + x.CheckRestart = new(CheckRestart) + } + + x.CheckRestart.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GRPCService = "" + } else { + x.GRPCService = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GRPCUseTLS = false + } else { + x.GRPCUseTLS = (bool)(r.DecodeBool()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + for { + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj26-1, "") + } + r.ReadArrayEnd() +} + +func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PortLabel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AddressMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Tags, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Tags, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CanaryTags == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.CanaryTags, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CanaryTags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryTags`) + } + r.WriteMapElemValue() + if x.CanaryTags == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.CanaryTags, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Checks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Checks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Checks`) + } + r.WriteMapElemValue() + if x.Checks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) + } + } + } + var yyn21 bool + if x.Connect == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Connect == nil { + r.EncodeNil() + } else { + x.Connect.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Connect\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Connect`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.Connect == nil { + r.EncodeNil() + } else { + x.Connect.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "PortLabel": + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + case "AddressMode": + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Tags, d) + } + } + case "CanaryTags": + if r.TryDecodeAsNil() { + x.CanaryTags = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.CanaryTags, d) + } + } + case "Checks": + if r.TryDecodeAsNil() { + x.Checks = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) + } + } + case "Connect": + if r.TryDecodeAsNil() { + if true && x.Connect != nil { + x.Connect = nil + } + } else { + if x.Connect == nil { + x.Connect = new(ConsulConnect) + } + + x.Connect.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Tags, d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CanaryTags = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.CanaryTags, d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Checks = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Connect != nil { + x.Connect = nil + } + } else { + if x.Connect == nil { + x.Connect = new(ConsulConnect) + } + + x.Connect.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulConnect) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Native)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Native\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Native`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Native)) + } + } + var yyn6 bool + if x.SidecarService == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SidecarService == nil { + r.EncodeNil() + } else { + x.SidecarService.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SidecarService\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarService`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.SidecarService == nil { + r.EncodeNil() + } else { + x.SidecarService.CodecEncodeSelf(e) + } + } + } + var yyn9 bool + if x.SidecarTask == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SidecarTask == nil { + r.EncodeNil() + } else { + x.SidecarTask.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SidecarTask\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarTask`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.SidecarTask == nil { + r.EncodeNil() + } else { + x.SidecarTask.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulConnect) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulConnect) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Native": + if r.TryDecodeAsNil() { + x.Native = false + } else { + x.Native = (bool)(r.DecodeBool()) + } + case "SidecarService": + if r.TryDecodeAsNil() { + if true && x.SidecarService != nil { + x.SidecarService = nil + } + } else { + if x.SidecarService == nil { + x.SidecarService = new(ConsulSidecarService) + } + + x.SidecarService.CodecDecodeSelf(d) + } + case "SidecarTask": + if r.TryDecodeAsNil() { + if true && x.SidecarTask != nil { + x.SidecarTask = nil + } + } else { + if x.SidecarTask == nil { + x.SidecarTask = new(SidecarTask) + } + + x.SidecarTask.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulConnect) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Native = false + } else { + x.Native = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SidecarService != nil { + x.SidecarService = nil + } + } else { + if x.SidecarService == nil { + x.SidecarService = new(ConsulSidecarService) + } + + x.SidecarService.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SidecarTask != nil { + x.SidecarTask = nil + } + } else { + if x.SidecarTask == nil { + x.SidecarTask = new(SidecarTask) + } + + x.SidecarTask.CodecDecodeSelf(d) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulSidecarService) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) + } + } + } + var yyn6 bool + if x.Proxy == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Proxy == nil { + r.EncodeNil() + } else { + x.Proxy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Proxy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Proxy`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Proxy == nil { + r.EncodeNil() + } else { + x.Proxy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulSidecarService) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulSidecarService) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Port": + if r.TryDecodeAsNil() { + x.Port = "" + } else { + x.Port = (string)(r.DecodeString()) + } + case "Proxy": + if r.TryDecodeAsNil() { + if true && x.Proxy != nil { + x.Proxy = nil + } + } else { + if x.Proxy == nil { + x.Proxy = new(ConsulProxy) + } + + x.Proxy.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulSidecarService) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = "" + } else { + x.Port = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Proxy != nil { + x.Proxy = nil + } + } else { + if x.Proxy == nil { + x.Proxy = new(ConsulProxy) + } + + x.Proxy.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *SidecarTask) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Driver\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `User`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntfV(x.Config, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntfV(x.Config, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Env, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Env, e) + } + } + } + var yyn18 bool + if x.Resources == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + var yyn24 bool + if x.KillTimeout == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.KillTimeout == nil { + r.EncodeNil() + } else { + yy25 := *x.KillTimeout + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(yy25)); yyxt26 != nil { + z.EncExtension(yy25, yyxt26) + } else { + r.EncodeInt(int64(yy25)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.KillTimeout == nil { + r.EncodeNil() + } else { + yy27 := *x.KillTimeout + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(yy27)); yyxt28 != nil { + z.EncExtension(yy27, yyxt28) + } else { + r.EncodeInt(int64(yy27)) + } + } + } + } + var yyn29 bool + if x.LogConfig == nil { + yyn29 = true + goto LABEL29 + } + LABEL29: + if yyr2 || yy2arr2 { + if yyn29 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) + } + r.WriteMapElemValue() + if yyn29 { + r.EncodeNil() + } else { + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } + var yyn32 bool + if x.ShutdownDelay == nil { + yyn32 = true + goto LABEL32 + } + LABEL32: + if yyr2 || yy2arr2 { + if yyn32 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ShutdownDelay == nil { + r.EncodeNil() + } else { + yy33 := *x.ShutdownDelay + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(yy33)); yyxt34 != nil { + z.EncExtension(yy33, yyxt34) + } else { + r.EncodeInt(int64(yy33)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) + } + r.WriteMapElemValue() + if yyn32 { + r.EncodeNil() + } else { + if x.ShutdownDelay == nil { + r.EncodeNil() + } else { + yy35 := *x.ShutdownDelay + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(yy35)); yyxt36 != nil { + z.EncExtension(yy35, yyxt36) + } else { + r.EncodeInt(int64(yy35)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SidecarTask) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SidecarTask) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Driver": + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + case "User": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + z.F.DecMapStringIntfX(&x.Config, d) + } + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Env, d) + } + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + case "KillTimeout": + if r.TryDecodeAsNil() { + if true && x.KillTimeout != nil { + x.KillTimeout = nil + } + } else { + if x.KillTimeout == nil { + x.KillTimeout = new(time.Duration) + } + + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt15 != nil { + z.DecExtension(x.KillTimeout, yyxt15) + } else { + *x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "LogConfig": + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + case "ShutdownDelay": + if r.TryDecodeAsNil() { + if true && x.ShutdownDelay != nil { + x.ShutdownDelay = nil + } + } else { + if x.ShutdownDelay == nil { + x.ShutdownDelay = new(time.Duration) + } + + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt18 != nil { + z.DecExtension(x.ShutdownDelay, yyxt18) + } else { + *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "KillSignal": + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SidecarTask) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + z.F.DecMapStringIntfX(&x.Config, d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Env, d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.KillTimeout != nil { + x.KillTimeout = nil + } + } else { + if x.KillTimeout == nil { + x.KillTimeout = new(time.Duration) + } + + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt32 != nil { + z.DecExtension(x.KillTimeout, yyxt32) + } else { + *x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ShutdownDelay != nil { + x.ShutdownDelay = nil + } + } else { + if x.ShutdownDelay == nil { + x.ShutdownDelay = new(time.Duration) + } + + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt35 != nil { + z.DecExtension(x.ShutdownDelay, yyxt35) + } else { + *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulProxy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalServiceAddress\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServiceAddress`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LocalServicePort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalServicePort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServicePort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LocalServicePort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Upstreams == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Upstreams\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Upstreams`) + } + r.WriteMapElemValue() + if x.Upstreams == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntfV(x.Config, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntfV(x.Config, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulProxy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulProxy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LocalServiceAddress": + if r.TryDecodeAsNil() { + x.LocalServiceAddress = "" + } else { + x.LocalServiceAddress = (string)(r.DecodeString()) + } + case "LocalServicePort": + if r.TryDecodeAsNil() { + x.LocalServicePort = 0 + } else { + x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Upstreams": + if r.TryDecodeAsNil() { + x.Upstreams = nil + } else { + if false { + } else { + h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) + } + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + z.F.DecMapStringIntfX(&x.Config, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulProxy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalServiceAddress = "" + } else { + x.LocalServiceAddress = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalServicePort = 0 + } else { + x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Upstreams = nil + } else { + if false { + } else { + h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + z.F.DecMapStringIntfX(&x.Config, d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulUpstream) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestinationName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LocalBindPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalBindPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LocalBindPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulUpstream) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulUpstream) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DestinationName": + if r.TryDecodeAsNil() { + x.DestinationName = "" + } else { + x.DestinationName = (string)(r.DecodeString()) + } + case "LocalBindPort": + if r.TryDecodeAsNil() { + x.LocalBindPort = 0 + } else { + x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulUpstream) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestinationName = "" + } else { + x.DestinationName = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalBindPort = 0 + } else { + x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamingRpcHeader) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Method\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamingRpcHeader) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *StreamingRpcHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Method": + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamingRpcHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamingRpcAck) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamingRpcAck) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *StreamingRpcAck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamingRpcAck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamingRpcRegistry) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamingRpcRegistry) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *StreamingRpcRegistry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamingRpcRegistry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x MessageType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeUint(uint64(x)) + } +} + +func (x *MessageType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (MessageType)(z.C.UintV(r.DecodeUint64(), 8)) + } +} + +func (x Context) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *Context) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (Context)(r.DecodeString()) + } +} + +func (x *NamespacedID) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespacedID) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespacedID) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespacedID) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *InternalRpcInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *InternalRpcInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *InternalRpcInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Forwarded": + if r.TryDecodeAsNil() { + x.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *InternalRpcInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *QueryOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *QueryOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *QueryOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *QueryOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *WriteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WriteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WriteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WriteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *QueryMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *QueryMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *QueryMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *QueryMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastContact = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.DecExtension(x.LastContact, yyxt11) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *WriteMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WriteMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WriteMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WriteMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + var yyn3 bool + if x.Node == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.NodeEvent == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Node": + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.NodeIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeIDs`) + } + r.WriteMapElemValue() + if x.NodeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.NodeIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeIDs": + if r.TryDecodeAsNil() { + x.NodeIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.NodeIDs, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.NodeIDs, d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeServerInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RPCAdvertiseAddr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RPCAdvertiseAddr`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RPCMajorVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RPCMajorVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMajorVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RPCMajorVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RPCMinorVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RPCMinorVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMinorVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RPCMinorVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeServerInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeServerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RPCAdvertiseAddr": + if r.TryDecodeAsNil() { + x.RPCAdvertiseAddr = "" + } else { + x.RPCAdvertiseAddr = (string)(r.DecodeString()) + } + case "RPCMajorVersion": + if r.TryDecodeAsNil() { + x.RPCMajorVersion = 0 + } else { + x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "RPCMinorVersion": + if r.TryDecodeAsNil() { + x.RPCMinorVersion = 0 + } else { + x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeServerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RPCAdvertiseAddr = "" + } else { + x.RPCAdvertiseAddr = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RPCMajorVersion = 0 + } else { + x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RPCMinorVersion = 0 + } else { + x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + var yyn9 bool + if x.NodeEvent == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + var yyn6 bool + if x.DrainStrategy == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DrainStrategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drain\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MarkEligible\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } + var yyn15 bool + if x.NodeEvent == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "DrainStrategy": + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + case "Drain": + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + case "MarkEligible": + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *BatchNodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Updates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) + } + r.WriteMapElemValue() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvents\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) + } + r.WriteMapElemValue() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *BatchNodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Updates": + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) + } + } + case "NodeEvents": + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) + } + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *DrainUpdate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.DrainStrategy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DrainStrategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MarkEligible\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainUpdate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DrainStrategy": + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + case "MarkEligible": + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateEligibilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) + } + } + } + var yyn9 bool + if x.NodeEvent == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateEligibilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Eligibility": + if r.TryDecodeAsNil() { + x.Eligibility = "" + } else { + x.Eligibility = (string)(r.DecodeString()) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Eligibility = "" + } else { + x.Eligibility = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *SearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Matches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Matches\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Matches`) + } + r.WriteMapElemValue() + if x.Matches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Truncations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextbool((map[Context]bool)(x.Truncations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Truncations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Truncations`) + } + r.WriteMapElemValue() + if x.Truncations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextbool((map[Context]bool)(x.Truncations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Matches": + if r.TryDecodeAsNil() { + x.Matches = nil + } else { + if false { + } else { + h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) + } + } + case "Truncations": + if r.TryDecodeAsNil() { + x.Truncations = nil + } else { + if false { + } else { + h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SearchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Matches = nil + } else { + if false { + } else { + h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Truncations = nil + } else { + if false { + } else { + h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { + z.DecExtension(x.LastContact, yyxt19) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *SearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Context.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Context\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) + } + r.WriteMapElemValue() + x.Context.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Prefix": + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "Context": + if r.TryDecodeAsNil() { + x.Context = "" + } else { + x.Context.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SearchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Context = "" + } else { + x.Context.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt21 != nil { + z.DecExtension(x.MaxQueryTime, yyxt21) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnforceIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnforceIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnforceIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnforceIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "EnforceIndex": + if r.TryDecodeAsNil() { + x.EnforceIndex = false + } else { + x.EnforceIndex = (bool)(r.DecodeBool()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnforceIndex = false + } else { + x.EnforceIndex = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Purge\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Purge": + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDeregisterOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Purge\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDeregisterOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDeregisterOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Purge": + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDeregisterOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy7 := &x.EvalOptions + yy7.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalOptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalOptions`) + } + r.WriteMapElemValue() + yy9 := &x.EvalOptions + yy9.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "EvalOptions": + if r.TryDecodeAsNil() { + x.EvalOptions = EvalOptions{} + } else { + x.EvalOptions.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalOptions = EvalOptions{} + } else { + x.EvalOptions.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ForceReschedule)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ForceReschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ForceReschedule)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ForceReschedule": + if r.TryDecodeAsNil() { + x.ForceReschedule = false + } else { + x.ForceReschedule = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ForceReschedule = false + } else { + x.ForceReschedule = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"All\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `All`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "All": + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobPlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Diff)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diff\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Diff)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobPlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobPlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Diff": + if r.TryDecodeAsNil() { + x.Diff = false + } else { + x.Diff = (bool)(r.DecodeBool()) + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobPlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Diff = false + } else { + x.Diff = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSummaryRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSummaryRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSummaryRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSummaryRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDispatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDispatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDispatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDispatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobValidateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobValidateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobValidateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobValidateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobRevertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + var yyn9 bool + if x.EnforcePriorVersion == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.EnforcePriorVersion == nil { + r.EncodeNil() + } else { + yy10 := *x.EnforcePriorVersion + if false { + } else { + r.EncodeUint(uint64(yy10)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnforcePriorVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnforcePriorVersion`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.EnforcePriorVersion == nil { + r.EncodeNil() + } else { + yy12 := *x.EnforcePriorVersion + if false { + } else { + r.EncodeUint(uint64(yy12)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobRevertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobRevertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "EnforcePriorVersion": + if r.TryDecodeAsNil() { + if true && x.EnforcePriorVersion != nil { + x.EnforcePriorVersion = nil + } + } else { + if x.EnforcePriorVersion == nil { + x.EnforcePriorVersion = new(uint64) + } + + if false { + } else { + *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) + } + } + case "VaultToken": + if r.TryDecodeAsNil() { + x.VaultToken = "" + } else { + x.VaultToken = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobRevertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.EnforcePriorVersion != nil { + x.EnforcePriorVersion = nil + } + } else { + if x.EnforcePriorVersion == nil { + x.EnforcePriorVersion = new(uint64) + } + + if false { + } else { + *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultToken = "" + } else { + x.VaultToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStabilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStabilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStabilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "Stable": + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStabilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStabilityResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStabilityResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStabilityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStabilityResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "EvalToken": + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Evals, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Evals, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Allocs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Allocs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Evals, d) + } + } + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Allocs, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Evals, d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Allocs, d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalAckRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalAckRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalAckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Token": + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalAckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDequeueRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Schedulers == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Schedulers, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Schedulers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulers`) + } + r.WriteMapElemValue() + if x.Schedulers == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Schedulers, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { + z.EncExtension(x.Timeout, yyxt7) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Timeout)); yyxt8 != nil { + z.EncExtension(x.Timeout, yyxt8) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.SchedulerVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.SchedulerVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDequeueRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDequeueRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Schedulers": + if r.TryDecodeAsNil() { + x.Schedulers = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Schedulers, d) + } + } + case "Timeout": + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { + z.DecExtension(x.Timeout, yyxt7) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + case "SchedulerVersion": + if r.TryDecodeAsNil() { + x.SchedulerVersion = 0 + } else { + x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDequeueRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Schedulers = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Schedulers, d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { + z.DecExtension(x.Timeout, yyxt17) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulerVersion = 0 + } else { + x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Plan == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Plan == nil { + r.EncodeNil() + } else { + x.Plan.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Plan\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Plan`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Plan == nil { + r.EncodeNil() + } else { + x.Plan.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Plan": + if r.TryDecodeAsNil() { + if true && x.Plan != nil { + x.Plan = nil + } + } else { + if x.Plan == nil { + x.Plan = new(Plan) + } + + x.Plan.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Plan != nil { + x.Plan = nil + } + } else { + if x.Plan == nil { + x.Plan = new(Plan) + } + + x.Plan.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ApplyPlanResultsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) + } + r.WriteMapElemValue() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsStopped\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) + } + r.WriteMapElemValue() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsUpdated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) + } + r.WriteMapElemValue() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + var yyn15 bool + if x.AllocUpdateRequest.Job == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn30 bool + if x.Deployment == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) + } + r.WriteMapElemValue() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePreemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) + } + r.WriteMapElemValue() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsPreempted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsPreempted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsPreempted`) + } + r.WriteMapElemValue() + if x.AllocsPreempted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PreemptionEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptionEvals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionEvals`) + } + r.WriteMapElemValue() + if x.PreemptionEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ApplyPlanResultsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ApplyPlanResultsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Alloc": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + case "AllocsStopped": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + case "AllocsUpdated": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.AllocUpdateRequest.Job != nil { + x.AllocUpdateRequest.Job = nil + } + } else { + if x.AllocUpdateRequest.Job == nil { + x.AllocUpdateRequest.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "DeploymentUpdates": + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "NodePreemptions": + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) + } + } + case "AllocsPreempted": + if r.TryDecodeAsNil() { + x.AllocsPreempted = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) + } + } + case "PreemptionEvals": + if r.TryDecodeAsNil() { + x.PreemptionEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ApplyPlanResultsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj27 int + var yyb27 bool + var yyhl27 bool = l >= 0 + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocUpdateRequest.Job != nil { + x.AllocUpdateRequest.Job = nil + } + } else { + if x.AllocUpdateRequest.Job == nil { + x.AllocUpdateRequest.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocsPreempted = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptionEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) + } + } + for { + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj27-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) + } + r.WriteMapElemValue() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsStopped\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) + } + r.WriteMapElemValue() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsUpdated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) + } + r.WriteMapElemValue() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + var yyn15 bool + if x.Job == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Alloc": + if r.TryDecodeAsNil() { + x.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + case "AllocsStopped": + if r.TryDecodeAsNil() { + x.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + case "AllocsUpdated": + if r.TryDecodeAsNil() { + x.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocUpdateDesiredTransitionRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocUpdateDesiredTransitionRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStopRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStopRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocStopRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStopRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStopResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStopResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocStopResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStopResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocSignalRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.EncExtension(x.MaxQueryTime, yyxt22) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.EncExtension(x.MaxQueryTime, yyxt23) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocSignalRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocSignalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Signal": + if r.TryDecodeAsNil() { + x.Signal = "" + } else { + x.Signal = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocSignalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Signal = "" + } else { + x.Signal = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.AllocIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIDs`) + } + r.WriteMapElemValue() + if x.AllocIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.AllocIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocIDs": + if r.TryDecodeAsNil() { + x.AllocIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.AllocIDs, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocsGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.AllocIDs, d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocRestartRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocRestartRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocRestartRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocRestartRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicForceRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicForceRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicForceRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicForceRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServerMembersResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerRegion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerRegion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerDC\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerDC`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Members == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Members\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Members`) + } + r.WriteMapElemValue() + if x.Members == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServerMembersResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServerMembersResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ServerName": + if r.TryDecodeAsNil() { + x.ServerName = "" + } else { + x.ServerName = (string)(r.DecodeString()) + } + case "ServerRegion": + if r.TryDecodeAsNil() { + x.ServerRegion = "" + } else { + x.ServerRegion = (string)(r.DecodeString()) + } + case "ServerDC": + if r.TryDecodeAsNil() { + x.ServerDC = "" + } else { + x.ServerDC = (string)(r.DecodeString()) + } + case "Members": + if r.TryDecodeAsNil() { + x.Members = nil + } else { + if false { + } else { + h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServerMembersResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerName = "" + } else { + x.ServerName = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerRegion = "" + } else { + x.ServerRegion = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerDC = "" + } else { + x.ServerDC = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Members = nil + } else { + if false { + } else { + h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServerMember) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Addr == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Addr)); yyxt7 != nil { + z.EncExtension(x.Addr, yyxt7) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Addr) + } else { + h.encnet_IP((net.IP)(x.Addr), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Addr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Addr`) + } + r.WriteMapElemValue() + if x.Addr == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Addr)); yyxt8 != nil { + z.EncExtension(x.Addr, yyxt8) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Addr) + } else { + h.encnet_IP((net.IP)(x.Addr), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Port)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Port)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Tags, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Tags, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProtocolMin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMax)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProtocolMax\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMax`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMax)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolCur)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProtocolCur\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolCur`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolCur)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelegateMin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMax)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelegateMax\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMax`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMax)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DelegateCur)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelegateCur\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateCur`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DelegateCur)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServerMember) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServerMember) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Addr": + if r.TryDecodeAsNil() { + x.Addr = nil + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Addr)); yyxt6 != nil { + z.DecExtension(x.Addr, yyxt6) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.Addr) + } else { + h.decnet_IP((*net.IP)(&x.Addr), d) + } + } + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Tags, d) + } + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "ProtocolMin": + if r.TryDecodeAsNil() { + x.ProtocolMin = 0 + } else { + x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "ProtocolMax": + if r.TryDecodeAsNil() { + x.ProtocolMax = 0 + } else { + x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "ProtocolCur": + if r.TryDecodeAsNil() { + x.ProtocolCur = 0 + } else { + x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "DelegateMin": + if r.TryDecodeAsNil() { + x.DelegateMin = 0 + } else { + x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "DelegateMax": + if r.TryDecodeAsNil() { + x.DelegateMax = 0 + } else { + x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "DelegateCur": + if r.TryDecodeAsNil() { + x.DelegateCur = 0 + } else { + x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServerMember) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Addr = nil + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.Addr)); yyxt20 != nil { + z.DecExtension(x.Addr, yyxt20) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.Addr) + } else { + h.decnet_IP((*net.IP)(&x.Addr), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Tags, d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProtocolMin = 0 + } else { + x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProtocolMax = 0 + } else { + x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProtocolCur = 0 + } else { + x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelegateMin = 0 + } else { + x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelegateMax = 0 + } else { + x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelegateCur = 0 + } else { + x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeriveVaultTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Tasks, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Tasks, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { + z.EncExtension(x.MaxQueryTime, yyxt25) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.EncExtension(x.MaxQueryTime, yyxt26) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeriveVaultTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeriveVaultTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Tasks, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.DecExtension(x.MaxQueryTime, yyxt13) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeriveVaultTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Tasks, d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *VaultAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Accessors == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Accessors\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Accessors`) + } + r.WriteMapElemValue() + if x.Accessors == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VaultAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VaultAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Accessors": + if r.TryDecodeAsNil() { + x.Accessors = nil + } else { + if false { + } else { + h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.Accessors), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VaultAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Accessors = nil + } else { + if false { + } else { + h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.Accessors), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *VaultAccessor) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Accessor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Accessor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreationTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreationTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreationTTL`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreationTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VaultAccessor) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VaultAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Accessor": + if r.TryDecodeAsNil() { + x.Accessor = "" + } else { + x.Accessor = (string)(r.DecodeString()) + } + case "CreationTTL": + if r.TryDecodeAsNil() { + x.CreationTTL = 0 + } else { + x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VaultAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Accessor = "" + } else { + x.Accessor = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreationTTL = 0 + } else { + x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeriveVaultTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Tasks, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Tasks, e) + } + } + } + var yyn6 bool + if x.Error == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeriveVaultTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeriveVaultTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Tasks, d) + } + } + case "Error": + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RecoverableError) + } + + x.Error.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeriveVaultTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Tasks, d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RecoverableError) + } + + x.Error.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *GenericRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *GenericRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *GenericRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *GenericRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Deployments, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployments\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) + } + r.WriteMapElemValue() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Deployments, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployments": + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Deployments, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Deployments, d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentStatusUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.Eval == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.DeploymentUpdate == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } + var yyn9 bool + if x.Job == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentStatusUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "DeploymentUpdate": + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.HealthyAllocationIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.HealthyAllocationIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UnhealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "HealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.HealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) + } + } + case "UnhealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *ApplyDeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.HealthyAllocationIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.HealthyAllocationIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UnhealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt25 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt25 != nil { + z.EncExtension(x.Timestamp, yyxt25) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt26 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt26 != nil { + z.EncExtension(x.Timestamp, yyxt26) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + var yyn27 bool + if x.DeploymentUpdate == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } + var yyn30 bool + if x.Job == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + var yyn33 bool + if x.Eval == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ApplyDeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "HealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) + } + } + case "UnhealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { + z.DecExtension(x.Timestamp, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "DeploymentUpdate": + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt29 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt29 != nil { + z.DecExtension(x.Timestamp, yyxt29) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"All\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `All`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Groups, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Groups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) + } + r.WriteMapElemValue() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Groups, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "All": + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + case "Groups": + if r.TryDecodeAsNil() { + x.Groups = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Groups, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Groups = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Groups, d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ApplyDeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"All\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `All`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Groups, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Groups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) + } + r.WriteMapElemValue() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Groups, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn24 bool + if x.Eval == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ApplyDeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "All": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + case "Groups": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.Groups = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Groups, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.Groups = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Groups, d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Pause)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pause\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Pause`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Pause)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Pause": + if r.TryDecodeAsNil() { + x.Pause = false + } else { + x.Pause = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentPauseRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Pause = false + } else { + x.Pause = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentFailRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentFailRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentFailRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentFailRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleDeploymentResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Deployment == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleDeploymentResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleDeploymentResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleDeploymentResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *GenericResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *GenericResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *GenericResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *GenericResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *VersionResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Build\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Build`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.Versions, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Versions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) + } + r.WriteMapElemValue() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.Versions, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VersionResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VersionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Build": + if r.TryDecodeAsNil() { + x.Build = "" + } else { + x.Build = (string)(r.DecodeString()) + } + case "Versions": + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.Versions, d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VersionResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Build = "" + } else { + x.Build = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.Versions, d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { + z.EncExtension(x.LastContact, yyxt19) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.EncExtension(x.LastContact, yyxt20) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { + z.DecExtension(x.LastContact, yyxt19) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.EncExtension(x.LastContact, yyxt16) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.EncExtension(x.LastContact, yyxt17) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobBatchDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.JobEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapNamespacedIDstring((map[NamespacedID]string)(x.JobEvals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobEvals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobEvals`) + } + r.WriteMapElemValue() + if x.JobEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapNamespacedIDstring((map[NamespacedID]string)(x.JobEvals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobBatchDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobBatchDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobEvals": + if r.TryDecodeAsNil() { + x.JobEvals = nil + } else { + if false { + } else { + h.decMapNamespacedIDstring((*map[NamespacedID]string)(&x.JobEvals), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobBatchDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobEvals = nil + } else { + if false { + } else { + h.decMapNamespacedIDstring((*map[NamespacedID]string)(&x.JobEvals), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobValidateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.DriverConfigValidated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DriverConfigValidated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DriverConfigValidated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.DriverConfigValidated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ValidationErrors == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.ValidationErrors, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ValidationErrors\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationErrors`) + } + r.WriteMapElemValue() + if x.ValidationErrors == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.ValidationErrors, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobValidateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobValidateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DriverConfigValidated": + if r.TryDecodeAsNil() { + x.DriverConfigValidated = false + } else { + x.DriverConfigValidated = (bool)(r.DecodeBool()) + } + case "ValidationErrors": + if r.TryDecodeAsNil() { + x.ValidationErrors = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.ValidationErrors, d) + } + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobValidateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DriverConfigValidated = false + } else { + x.DriverConfigValidated = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ValidationErrors = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.ValidationErrors, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt4 != nil { + z.EncExtension(x.HeartbeatTTL, yyxt4) + } else { + r.EncodeInt(int64(x.HeartbeatTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HeartbeatTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HeartbeatTTL`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { + z.EncExtension(x.HeartbeatTTL, yyxt5) + } else { + r.EncodeInt(int64(x.HeartbeatTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.EvalIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.EvalIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LeaderRPCAddr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderRPCAddr`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NumNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.LastContact)); yyxt28 != nil { + z.EncExtension(x.LastContact, yyxt28) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt29 := z.Extension(z.I2Rtid(x.LastContact)); yyxt29 != nil { + z.EncExtension(x.LastContact, yyxt29) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "HeartbeatTTL": + if r.TryDecodeAsNil() { + x.HeartbeatTTL = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { + z.DecExtension(x.HeartbeatTTL, yyxt5) + } else { + x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) + } + } + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.EvalIDs, d) + } + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "LeaderRPCAddr": + if r.TryDecodeAsNil() { + x.LeaderRPCAddr = "" + } else { + x.LeaderRPCAddr = (string)(r.DecodeString()) + } + case "NumNodes": + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HeartbeatTTL = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt20 != nil { + z.DecExtension(x.HeartbeatTTL, yyxt20) + } else { + x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.EvalIDs, d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LeaderRPCAddr = "" + } else { + x.LeaderRPCAddr = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.LastContact)); yyxt31 != nil { + z.DecExtension(x.LastContact, yyxt31) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDrainUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.EvalIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.EvalIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDrainUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDrainUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.EvalIDs, d) + } + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDrainUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.EvalIDs, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeEligibilityUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.EvalIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.EvalIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeEligibilityUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.EvalIDs, d) + } + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.EvalIDs, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeClientAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringUint64V(x.Allocs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringUint64V(x.Allocs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MigrateTokens == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.MigrateTokens, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MigrateTokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MigrateTokens`) + } + r.WriteMapElemValue() + if x.MigrateTokens == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.MigrateTokens, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeClientAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeClientAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + z.F.DecMapStringUint64X(&x.Allocs, d) + } + } + case "MigrateTokens": + if r.TryDecodeAsNil() { + x.MigrateTokens = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.MigrateTokens, d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeClientAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + z.F.DecMapStringUint64X(&x.Allocs, d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MigrateTokens = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.MigrateTokens, d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { + z.DecExtension(x.LastContact, yyxt19) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleNodeResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Node == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleNodeResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleNodeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Node": + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleNodeResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Nodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) + } + r.WriteMapElemValue() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Nodes": + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleJobResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleJobResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleJobResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleJobResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSummaryResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.JobSummary == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobSummary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSummaryResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSummaryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobSummary": + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSummaryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDispatchResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DispatchedJobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchedJobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDispatchResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDispatchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DispatchedJobID": + if r.TryDecodeAsNil() { + x.DispatchedJobID = "" + } else { + x.DispatchedJobID = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobCreateIndex": + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDispatchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DispatchedJobID = "" + } else { + x.DispatchedJobID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobVersionsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Diffs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diffs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Diffs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobVersionsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobVersionsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Diffs": + if r.TryDecodeAsNil() { + x.Diffs = false + } else { + x.Diffs = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobVersionsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Diffs = false + } else { + x.Diffs = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobVersionsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJob(([]*Job)(x.Versions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Versions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) + } + r.WriteMapElemValue() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJob(([]*Job)(x.Versions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Diffs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diffs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) + } + r.WriteMapElemValue() + if x.Diffs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobVersionsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobVersionsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Versions": + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) + } + } + case "Diffs": + if r.TryDecodeAsNil() { + x.Diffs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobVersionsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Diffs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { + z.DecExtension(x.LastContact, yyxt19) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobPlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + var yyn3 bool + if x.Annotations == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailedTGAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) + } + r.WriteMapElemValue() + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CreatedEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreatedEvals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreatedEvals`) + } + r.WriteMapElemValue() + if x.CreatedEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) + } + } + } + var yyn15 bool + if x.Diff == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Diff == nil { + r.EncodeNil() + } else { + x.Diff.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diff\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Diff == nil { + r.EncodeNil() + } else { + x.Diff.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.NextPeriodicLaunch) + } else if yyxt19 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt19 != nil { + z.EncExtension(x.NextPeriodicLaunch, yyxt19) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.NextPeriodicLaunch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.NextPeriodicLaunch) + } else { + z.EncFallback(x.NextPeriodicLaunch) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextPeriodicLaunch\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextPeriodicLaunch`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.NextPeriodicLaunch) + } else if yyxt20 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt20 != nil { + z.EncExtension(x.NextPeriodicLaunch, yyxt20) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.NextPeriodicLaunch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.NextPeriodicLaunch) + } else { + z.EncFallback(x.NextPeriodicLaunch) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobPlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobPlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Annotations": + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + case "FailedTGAllocs": + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreatedEvals": + if r.TryDecodeAsNil() { + x.CreatedEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) + } + } + case "Diff": + if r.TryDecodeAsNil() { + if true && x.Diff != nil { + x.Diff = nil + } + } else { + if x.Diff == nil { + x.Diff = new(JobDiff) + } + + x.Diff.CodecDecodeSelf(d) + } + case "NextPeriodicLaunch": + if r.TryDecodeAsNil() { + x.NextPeriodicLaunch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.NextPeriodicLaunch = r.DecodeTime() + } else if yyxt12 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt12 != nil { + z.DecExtension(x.NextPeriodicLaunch, yyxt12) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.NextPeriodicLaunch) + } else { + z.DecFallback(&x.NextPeriodicLaunch, false) + } + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobPlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreatedEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Diff != nil { + x.Diff = nil + } + } else { + if x.Diff == nil { + x.Diff = new(JobDiff) + } + + x.Diff.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextPeriodicLaunch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.NextPeriodicLaunch = r.DecodeTime() + } else if yyxt24 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt24 != nil { + z.DecExtension(x.NextPeriodicLaunch, yyxt24) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.NextPeriodicLaunch) + } else { + z.DecFallback(&x.NextPeriodicLaunch, false) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleAllocResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Alloc == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Alloc == nil { + r.EncodeNil() + } else { + x.Alloc.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Alloc == nil { + r.EncodeNil() + } else { + x.Alloc.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleAllocResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleAllocResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Alloc": + if r.TryDecodeAsNil() { + if true && x.Alloc != nil { + x.Alloc = nil + } + } else { + if x.Alloc == nil { + x.Alloc = new(Allocation) + } + + x.Alloc.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleAllocResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Alloc != nil { + x.Alloc = nil + } + } else { + if x.Alloc == nil { + x.Alloc = new(Allocation) + } + + x.Alloc.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocsGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobEvaluationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evaluations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) + } + r.WriteMapElemValue() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobEvaluationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobEvaluationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evaluations": + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobEvaluationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleEvalResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Eval == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleEvalResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleEvalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleEvalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDequeueResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + var yyn3 bool + if x.Eval == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.WaitIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WaitIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WaitIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.WaitIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.EncExtension(x.LastContact, yyxt16) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.EncExtension(x.LastContact, yyxt17) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDequeueResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDequeueResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "Token": + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + case "WaitIndex": + if r.TryDecodeAsNil() { + x.WaitIndex = 0 + } else { + x.WaitIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDequeueResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WaitIndex = 0 + } else { + x.WaitIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Result == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Result == nil { + r.EncodeNil() + } else { + x.Result.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Result\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Result`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Result == nil { + r.EncodeNil() + } else { + x.Result.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Result": + if r.TryDecodeAsNil() { + if true && x.Result != nil { + x.Result = nil + } + } else { + if x.Result == nil { + x.Result = new(PlanResult) + } + + x.Result.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Result != nil { + x.Result = nil + } + } else { + if x.Result == nil { + x.Result = new(PlanResult) + } + + x.Result.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployments\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) + } + r.WriteMapElemValue() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployments": + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evaluations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) + } + r.WriteMapElemValue() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evaluations": + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicForceResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicForceResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicForceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicForceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DeploymentModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DeploymentModifyIndex)) + } + } + var yyn12 bool + if x.RevertedJobVersion == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RevertedJobVersion == nil { + r.EncodeNil() + } else { + yy13 := *x.RevertedJobVersion + if false { + } else { + r.EncodeUint(uint64(yy13)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RevertedJobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RevertedJobVersion`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.RevertedJobVersion == nil { + r.EncodeNil() + } else { + yy15 := *x.RevertedJobVersion + if false { + } else { + r.EncodeUint(uint64(yy15)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "DeploymentModifyIndex": + if r.TryDecodeAsNil() { + x.DeploymentModifyIndex = 0 + } else { + x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) + } + case "RevertedJobVersion": + if r.TryDecodeAsNil() { + if true && x.RevertedJobVersion != nil { + x.RevertedJobVersion = nil + } + } else { + if x.RevertedJobVersion == nil { + x.RevertedJobVersion = new(uint64) + } + + if false { + } else { + *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentModifyIndex = 0 + } else { + x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RevertedJobVersion != nil { + x.RevertedJobVersion = nil + } + } else { + if x.RevertedJobVersion == nil { + x.RevertedJobVersion = new(uint64) + } + + if false { + } else { + *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeConnQueryResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Connected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Connected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Connected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Connected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Established) + } else if yyxt7 := z.Extension(z.I2Rtid(x.Established)); yyxt7 != nil { + z.EncExtension(x.Established, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Established) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Established) + } else { + z.EncFallback(x.Established) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Established\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Established`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Established) + } else if yyxt8 := z.Extension(z.I2Rtid(x.Established)); yyxt8 != nil { + z.EncExtension(x.Established, yyxt8) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Established) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Established) + } else { + z.EncFallback(x.Established) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeConnQueryResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeConnQueryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Connected": + if r.TryDecodeAsNil() { + x.Connected = false + } else { + x.Connected = (bool)(r.DecodeBool()) + } + case "Established": + if r.TryDecodeAsNil() { + x.Established = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Established = r.DecodeTime() + } else if yyxt6 := z.Extension(z.I2Rtid(x.Established)); yyxt6 != nil { + z.DecExtension(x.Established, yyxt6) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Established) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Established) + } else { + z.DecFallback(&x.Established, false) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeConnQueryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Connected = false + } else { + x.Connected = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Established = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Established = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.Established)); yyxt14 != nil { + z.DecExtension(x.Established, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Established) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Established) + } else { + z.DecFallback(&x.Established, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EmitNodeEventsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvents\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) + } + r.WriteMapElemValue() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EmitNodeEventsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EmitNodeEventsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeEvents": + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EmitNodeEventsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EmitNodeEventsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EmitNodeEventsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EmitNodeEventsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EmitNodeEventsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Subsystem\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Subsystem`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Details, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Details\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) + } + r.WriteMapElemValue() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Details, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt13 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt13 != nil { + z.EncExtension(x.Timestamp, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { + z.EncExtension(x.Timestamp, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Subsystem": + if r.TryDecodeAsNil() { + x.Subsystem = "" + } else { + x.Subsystem = (string)(r.DecodeString()) + } + case "Details": + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Details, d) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { + z.DecExtension(x.Timestamp, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Subsystem = "" + } else { + x.Subsystem = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Details, d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt17 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt17 != nil { + z.DecExtension(x.Timestamp, yyxt17) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *DrainSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { + z.EncExtension(x.Deadline, yyxt4) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.EncExtension(x.Deadline, yyxt5) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreSystemJobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deadline": + if r.TryDecodeAsNil() { + x.Deadline = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.DecExtension(x.Deadline, yyxt5) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + case "IgnoreSystemJobs": + if r.TryDecodeAsNil() { + x.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Deadline = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.Deadline)); yyxt9 != nil { + z.DecExtension(x.Deadline, yyxt9) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *DrainStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { + z.EncExtension(x.Deadline, yyxt4) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.EncExtension(x.Deadline, yyxt5) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreSystemJobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ForceDeadline) + } else if yyxt10 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt10 != nil { + z.EncExtension(x.ForceDeadline, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ForceDeadline) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ForceDeadline) + } else { + z.EncFallback(x.ForceDeadline) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ForceDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ForceDeadline`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ForceDeadline) + } else if yyxt11 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt11 != nil { + z.EncExtension(x.ForceDeadline, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ForceDeadline) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ForceDeadline) + } else { + z.EncFallback(x.ForceDeadline) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deadline": + if r.TryDecodeAsNil() { + x.DrainSpec.Deadline = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.DecExtension(x.Deadline, yyxt5) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + case "IgnoreSystemJobs": + if r.TryDecodeAsNil() { + x.DrainSpec.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + case "ForceDeadline": + if r.TryDecodeAsNil() { + x.ForceDeadline = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ForceDeadline = r.DecodeTime() + } else if yyxt8 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt8 != nil { + z.DecExtension(x.ForceDeadline, yyxt8) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ForceDeadline) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ForceDeadline) + } else { + z.DecFallback(&x.ForceDeadline, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DrainSpec.Deadline = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Deadline)); yyxt11 != nil { + z.DecExtension(x.Deadline, yyxt11) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DrainSpec.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ForceDeadline = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ForceDeadline = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt14 != nil { + z.DecExtension(x.ForceDeadline, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ForceDeadline) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ForceDeadline) + } else { + z.DecFallback(&x.ForceDeadline, false) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(26) + } else { + r.WriteMapStart(26) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HTTPAddr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPAddr`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.TLSEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.TLSEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Attributes, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Attributes, e) + } + } + } + var yyn24 bool + if x.NodeResources == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeResources == nil { + r.EncodeNil() + } else { + x.NodeResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeResources`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.NodeResources == nil { + r.EncodeNil() + } else { + x.NodeResources.CodecEncodeSelf(e) + } + } + } + var yyn27 bool + if x.ReservedResources == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ReservedResources == nil { + r.EncodeNil() + } else { + x.ReservedResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedResources`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.ReservedResources == nil { + r.EncodeNil() + } else { + x.ReservedResources.CodecEncodeSelf(e) + } + } + } + var yyn30 bool + if x.Resources == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + var yyn33 bool + if x.Reserved == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Reserved == nil { + r.EncodeNil() + } else { + x.Reserved.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reserved\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reserved`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.Reserved == nil { + r.EncodeNil() + } else { + x.Reserved.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Links == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Links, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Links\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Links`) + } + r.WriteMapElemValue() + if x.Links == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Links, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ComputedClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ComputedClass`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drain\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } + var yyn51 bool + if x.DrainStrategy == nil { + yyn51 = true + goto LABEL51 + } + LABEL51: + if yyr2 || yy2arr2 { + if yyn51 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DrainStrategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) + } + r.WriteMapElemValue() + if yyn51 { + r.EncodeNil() + } else { + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulingEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.StatusUpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusUpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusUpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.StatusUpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) + } + r.WriteMapElemValue() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HostVolumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostVolumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) + } + r.WriteMapElemValue() + if x.HostVolumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "HTTPAddr": + if r.TryDecodeAsNil() { + x.HTTPAddr = "" + } else { + x.HTTPAddr = (string)(r.DecodeString()) + } + case "TLSEnabled": + if r.TryDecodeAsNil() { + x.TLSEnabled = false + } else { + x.TLSEnabled = (bool)(r.DecodeBool()) + } + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Attributes, d) + } + } + case "NodeResources": + if r.TryDecodeAsNil() { + if true && x.NodeResources != nil { + x.NodeResources = nil + } + } else { + if x.NodeResources == nil { + x.NodeResources = new(NodeResources) + } + + x.NodeResources.CodecDecodeSelf(d) + } + case "ReservedResources": + if r.TryDecodeAsNil() { + if true && x.ReservedResources != nil { + x.ReservedResources = nil + } + } else { + if x.ReservedResources == nil { + x.ReservedResources = new(NodeReservedResources) + } + + x.ReservedResources.CodecDecodeSelf(d) + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "Reserved": + if r.TryDecodeAsNil() { + if true && x.Reserved != nil { + x.Reserved = nil + } + } else { + if x.Reserved == nil { + x.Reserved = new(Resources) + } + + x.Reserved.CodecDecodeSelf(d) + } + case "Links": + if r.TryDecodeAsNil() { + x.Links = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Links, d) + } + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + case "NodeClass": + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + case "ComputedClass": + if r.TryDecodeAsNil() { + x.ComputedClass = "" + } else { + x.ComputedClass = (string)(r.DecodeString()) + } + case "Drain": + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + case "DrainStrategy": + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + case "SchedulingEligibility": + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "StatusUpdatedAt": + if r.TryDecodeAsNil() { + x.StatusUpdatedAt = 0 + } else { + x.StatusUpdatedAt = (int64)(r.DecodeInt64()) + } + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) + } + } + case "Drivers": + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + case "HostVolumes": + if r.TryDecodeAsNil() { + x.HostVolumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj36 int + var yyb36 bool + var yyhl36 bool = l >= 0 + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HTTPAddr = "" + } else { + x.HTTPAddr = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSEnabled = false + } else { + x.TLSEnabled = (bool)(r.DecodeBool()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Attributes, d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeResources != nil { + x.NodeResources = nil + } + } else { + if x.NodeResources == nil { + x.NodeResources = new(NodeResources) + } + + x.NodeResources.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ReservedResources != nil { + x.ReservedResources = nil + } + } else { + if x.ReservedResources == nil { + x.ReservedResources = new(NodeReservedResources) + } + + x.ReservedResources.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Reserved != nil { + x.Reserved = nil + } + } else { + if x.Reserved == nil { + x.Reserved = new(Resources) + } + + x.Reserved.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Links = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Links, d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ComputedClass = "" + } else { + x.ComputedClass = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusUpdatedAt = 0 + } else { + x.StatusUpdatedAt = (int64)(r.DecodeInt64()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostVolumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj36-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drain\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulingEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) + } + r.WriteMapElemValue() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "NodeClass": + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + case "Drain": + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + case "SchedulingEligibility": + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "Drivers": + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *Resources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CPU)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CPU\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CPU`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CPU)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.IOPS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IOPS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IOPS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.IOPS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + x.Devices.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + x.Devices.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Resources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Resources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CPU": + if r.TryDecodeAsNil() { + x.CPU = 0 + } else { + x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "IOPS": + if r.TryDecodeAsNil() { + x.IOPS = 0 + } else { + x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + x.Devices.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Resources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CPU = 0 + } else { + x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IOPS = 0 + } else { + x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + x.Devices.CodecDecodeSelf(d) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x ResourceDevices) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encResourceDevices((ResourceDevices)(x), e) + } + } +} + +func (x *ResourceDevices) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decResourceDevices((*ResourceDevices)(x), d) + } +} + +func (x *Port) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Label\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Label`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Value)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Value)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.To)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"To\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `To`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.To)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Port) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Port) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Label": + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + case "Value": + if r.TryDecodeAsNil() { + x.Value = 0 + } else { + x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "To": + if r.TryDecodeAsNil() { + x.To = 0 + } else { + x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Port) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = 0 + } else { + x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.To = 0 + } else { + x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *NetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Device\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CIDR\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CIDR`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IP\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IP`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MBits)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MBits\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MBits`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MBits)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReservedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.ReservedPorts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedPorts`) + } + r.WriteMapElemValue() + if x.ReservedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.ReservedPorts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DynamicPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.DynamicPorts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DynamicPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DynamicPorts`) + } + r.WriteMapElemValue() + if x.DynamicPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.DynamicPorts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + case "Device": + if r.TryDecodeAsNil() { + x.Device = "" + } else { + x.Device = (string)(r.DecodeString()) + } + case "CIDR": + if r.TryDecodeAsNil() { + x.CIDR = "" + } else { + x.CIDR = (string)(r.DecodeString()) + } + case "IP": + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = (string)(r.DecodeString()) + } + case "MBits": + if r.TryDecodeAsNil() { + x.MBits = 0 + } else { + x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ReservedPorts": + if r.TryDecodeAsNil() { + x.ReservedPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.ReservedPorts), d) + } + } + case "DynamicPorts": + if r.TryDecodeAsNil() { + x.DynamicPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.DynamicPorts), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NetworkResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Device = "" + } else { + x.Device = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CIDR = "" + } else { + x.CIDR = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MBits = 0 + } else { + x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.ReservedPorts), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DynamicPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.DynamicPorts), d) + } + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x Networks) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encNetworks((Networks)(x), e) + } + } +} + +func (x *Networks) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decNetworks((*Networks)(x), d) + } +} + +func (x *RequestedDevice) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Count)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + x.Constraints.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + x.Constraints.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + x.Affinities.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + x.Affinities.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RequestedDevice) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RequestedDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (uint64)(r.DecodeUint64()) + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + x.Constraints.CodecDecodeSelf(d) + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + x.Affinities.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RequestedDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (uint64)(r.DecodeUint64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + x.Constraints.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + x.Affinities.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Cpu + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cpu\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) + } + r.WriteMapElemValue() + yy6 := &x.Cpu + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Memory + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Memory\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) + } + r.WriteMapElemValue() + yy11 := &x.Memory + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy14 := &x.Disk + yy14.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Disk\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) + } + r.WriteMapElemValue() + yy16 := &x.Disk + yy16.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cpu": + if r.TryDecodeAsNil() { + x.Cpu = NodeCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + case "Memory": + if r.TryDecodeAsNil() { + x.Memory = NodeMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + case "Disk": + if r.TryDecodeAsNil() { + x.Disk = NodeDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cpu = NodeCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Memory = NodeMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Disk = NodeDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuShares\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CpuShares": + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeviceIdTuple) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vendor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeviceIdTuple) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeviceIdTuple) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Vendor": + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeviceIdTuple) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vendor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Instances\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) + } + r.WriteMapElemValue() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_Attribute((map[string]*pkg1_structs.Attribute)(x.Attributes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_Attribute((map[string]*pkg1_structs.Attribute)(x.Attributes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Vendor": + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Instances": + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) + } + } + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_Attribute((*map[string]*pkg1_structs.Attribute)(&x.Attributes), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_Attribute((*map[string]*pkg1_structs.Attribute)(&x.Attributes), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDevice) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } + var yyn12 bool + if x.Locality == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Locality == nil { + r.EncodeNil() + } else { + x.Locality.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Locality\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Locality`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Locality == nil { + r.EncodeNil() + } else { + x.Locality.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDevice) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "HealthDescription": + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + case "Locality": + if r.TryDecodeAsNil() { + if true && x.Locality != nil { + x.Locality = nil + } + } else { + if x.Locality == nil { + x.Locality = new(NodeDeviceLocality) + } + + x.Locality.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Locality != nil { + x.Locality = nil + } + } else { + if x.Locality == nil { + x.Locality = new(NodeDeviceLocality) + } + + x.Locality.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDeviceLocality) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PciBusID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PciBusID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDeviceLocality) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDeviceLocality) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PciBusID": + if r.TryDecodeAsNil() { + x.PciBusID = "" + } else { + x.PciBusID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDeviceLocality) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PciBusID = "" + } else { + x.PciBusID = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Cpu + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cpu\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) + } + r.WriteMapElemValue() + yy6 := &x.Cpu + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Memory + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Memory\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) + } + r.WriteMapElemValue() + yy11 := &x.Memory + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy14 := &x.Disk + yy14.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Disk\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) + } + r.WriteMapElemValue() + yy16 := &x.Disk + yy16.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy19 := &x.Networks + yy19.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + yy21 := &x.Networks + yy21.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cpu": + if r.TryDecodeAsNil() { + x.Cpu = NodeReservedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + case "Memory": + if r.TryDecodeAsNil() { + x.Memory = NodeReservedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + case "Disk": + if r.TryDecodeAsNil() { + x.Disk = NodeReservedDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = NodeReservedNetworkResources{} + } else { + x.Networks.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cpu = NodeReservedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Memory = NodeReservedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Disk = NodeReservedDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = NodeReservedNetworkResources{} + } else { + x.Networks.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuShares\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CpuShares": + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedNetworkResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedHostPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedHostPorts`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedNetworkResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedNetworkResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ReservedHostPorts": + if r.TryDecodeAsNil() { + x.ReservedHostPorts = "" + } else { + x.ReservedHostPorts = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedNetworkResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedHostPorts = "" + } else { + x.ReservedHostPorts = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy7 := &x.Shared + yy7.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Shared\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) + } + r.WriteMapElemValue() + yy9 := &x.Shared + yy9.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) + } + } + case "Shared": + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedTaskResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Cpu + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cpu\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) + } + r.WriteMapElemValue() + yy6 := &x.Cpu + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Memory + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Memory\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) + } + r.WriteMapElemValue() + yy11 := &x.Memory + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedTaskResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedTaskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cpu": + if r.TryDecodeAsNil() { + x.Cpu = AllocatedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + case "Memory": + if r.TryDecodeAsNil() { + x.Memory = AllocatedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedTaskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cpu = AllocatedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Memory = AllocatedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedSharedResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedSharedResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedSharedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedSharedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuShares\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CpuShares": + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x AllocatedDevices) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encAllocatedDevices((AllocatedDevices)(x), e) + } + } +} + +func (x *AllocatedDevices) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decAllocatedDevices((*AllocatedDevices)(x), d) + } +} + +func (x *AllocatedDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vendor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeviceIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.DeviceIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeviceIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeviceIDs`) + } + r.WriteMapElemValue() + if x.DeviceIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.DeviceIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Vendor": + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "DeviceIDs": + if r.TryDecodeAsNil() { + x.DeviceIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.DeviceIDs, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeviceIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.DeviceIDs, d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ComparableResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Flattened + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Flattened\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Flattened`) + } + r.WriteMapElemValue() + yy6 := &x.Flattened + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Shared + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Shared\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) + } + r.WriteMapElemValue() + yy11 := &x.Shared + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ComparableResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ComparableResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Flattened": + if r.TryDecodeAsNil() { + x.Flattened = AllocatedTaskResources{} + } else { + x.Flattened.CodecDecodeSelf(d) + } + case "Shared": + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ComparableResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Flattened = AllocatedTaskResources{} + } else { + x.Flattened.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(29) + } else { + r.WriteMapStart(29) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllAtOnce\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Datacenters, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) + } + r.WriteMapElemValue() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Datacenters, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Spreads\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) + } + r.WriteMapElemValue() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy46 := &x.Update + yy46.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Update\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) + } + r.WriteMapElemValue() + yy48 := &x.Update + yy48.CodecEncodeSelf(e) + } + var yyn50 bool + if x.Periodic == nil { + yyn50 = true + goto LABEL50 + } + LABEL50: + if yyr2 || yy2arr2 { + if yyn50 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Periodic == nil { + r.EncodeNil() + } else { + x.Periodic.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Periodic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) + } + r.WriteMapElemValue() + if yyn50 { + r.EncodeNil() + } else { + if x.Periodic == nil { + r.EncodeNil() + } else { + x.Periodic.CodecEncodeSelf(e) + } + } + } + var yyn53 bool + if x.ParameterizedJob == nil { + yyn53 = true + goto LABEL53 + } + LABEL53: + if yyr2 || yy2arr2 { + if yyn53 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ParameterizedJob == nil { + r.EncodeNil() + } else { + x.ParameterizedJob.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParameterizedJob\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) + } + r.WriteMapElemValue() + if yyn53 { + r.EncodeNil() + } else { + if x.ParameterizedJob == nil { + r.EncodeNil() + } else { + x.ParameterizedJob.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Dispatched)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dispatched\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Dispatched`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Dispatched)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "ParentID": + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "AllAtOnce": + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + case "Datacenters": + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Datacenters, d) + } + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + case "Spreads": + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) + } + } + case "Update": + if r.TryDecodeAsNil() { + x.Update = UpdateStrategy{} + } else { + x.Update.CodecDecodeSelf(d) + } + case "Periodic": + if r.TryDecodeAsNil() { + if true && x.Periodic != nil { + x.Periodic = nil + } + } else { + if x.Periodic == nil { + x.Periodic = new(PeriodicConfig) + } + + x.Periodic.CodecDecodeSelf(d) + } + case "ParameterizedJob": + if r.TryDecodeAsNil() { + if true && x.ParameterizedJob != nil { + x.ParameterizedJob = nil + } + } else { + if x.ParameterizedJob == nil { + x.ParameterizedJob = new(ParameterizedJobConfig) + } + + x.ParameterizedJob.CodecDecodeSelf(d) + } + case "Dispatched": + if r.TryDecodeAsNil() { + x.Dispatched = false + } else { + x.Dispatched = (bool)(r.DecodeBool()) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + case "VaultToken": + if r.TryDecodeAsNil() { + x.VaultToken = "" + } else { + x.VaultToken = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "Stable": + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj40 int + var yyb40 bool + var yyhl40 bool = l >= 0 + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Datacenters, d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Update = UpdateStrategy{} + } else { + x.Update.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Periodic != nil { + x.Periodic = nil + } + } else { + if x.Periodic == nil { + x.Periodic = new(PeriodicConfig) + } + + x.Periodic.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ParameterizedJob != nil { + x.ParameterizedJob = nil + } + } else { + if x.ParameterizedJob == nil { + x.ParameterizedJob = new(ParameterizedJobConfig) + } + + x.ParameterizedJob.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Dispatched = false + } else { + x.Dispatched = (bool)(r.DecodeBool()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultToken = "" + } else { + x.VaultToken = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj40-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(16) + } else { + r.WriteMapStart(16) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Datacenters, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) + } + r.WriteMapElemValue() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Datacenters, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Periodic)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Periodic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Periodic)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ParameterizedJob)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParameterizedJob\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ParameterizedJob)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + var yyn36 bool + if x.JobSummary == nil { + yyn36 = true + goto LABEL36 + } + LABEL36: + if yyr2 || yy2arr2 { + if yyn36 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobSummary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) + } + r.WriteMapElemValue() + if yyn36 { + r.EncodeNil() + } else { + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "ParentID": + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Datacenters": + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Datacenters, d) + } + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Periodic": + if r.TryDecodeAsNil() { + x.Periodic = false + } else { + x.Periodic = (bool)(r.DecodeBool()) + } + case "ParameterizedJob": + if r.TryDecodeAsNil() { + x.ParameterizedJob = false + } else { + x.ParameterizedJob = (bool)(r.DecodeBool()) + } + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "JobSummary": + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj21 int + var yyb21 bool + var yyhl21 bool = l >= 0 + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Datacenters, d) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Periodic = false + } else { + x.Periodic = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParameterizedJob = false + } else { + x.ParameterizedJob = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + for { + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj21-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSummary) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Summary == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Summary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Summary`) + } + r.WriteMapElemValue() + if x.Summary == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) + } + } + } + var yyn12 bool + if x.Children == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Children == nil { + r.EncodeNil() + } else { + x.Children.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Children\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Children`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Children == nil { + r.EncodeNil() + } else { + x.Children.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSummary) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Summary": + if r.TryDecodeAsNil() { + x.Summary = nil + } else { + if false { + } else { + h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) + } + } + case "Children": + if r.TryDecodeAsNil() { + if true && x.Children != nil { + x.Children = nil + } + } else { + if x.Children == nil { + x.Children = new(JobChildrenSummary) + } + + x.Children.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Summary = nil + } else { + if false { + } else { + h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Children != nil { + x.Children = nil + } + } else { + if x.Children == nil { + x.Children = new(JobChildrenSummary) + } + + x.Children.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobChildrenSummary) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Pending)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pending\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Pending`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Pending)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Running\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Dead)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dead\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Dead`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Dead)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobChildrenSummary) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobChildrenSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Pending": + if r.TryDecodeAsNil() { + x.Pending = 0 + } else { + x.Pending = (int64)(r.DecodeInt64()) + } + case "Running": + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int64)(r.DecodeInt64()) + } + case "Dead": + if r.TryDecodeAsNil() { + x.Dead = 0 + } else { + x.Dead = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobChildrenSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Pending = 0 + } else { + x.Pending = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Dead = 0 + } else { + x.Dead = (int64)(r.DecodeInt64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupSummary) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Queued)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Queued\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Queued`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Queued)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Complete)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Complete\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Complete`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Complete)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Failed)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Failed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Failed)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Running\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Starting)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Starting\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Starting`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Starting)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Lost)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lost\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Lost`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Lost)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupSummary) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Queued": + if r.TryDecodeAsNil() { + x.Queued = 0 + } else { + x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Complete": + if r.TryDecodeAsNil() { + x.Complete = 0 + } else { + x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Failed": + if r.TryDecodeAsNil() { + x.Failed = 0 + } else { + x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Running": + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Starting": + if r.TryDecodeAsNil() { + x.Starting = 0 + } else { + x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Lost": + if r.TryDecodeAsNil() { + x.Lost = 0 + } else { + x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Queued = 0 + } else { + x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Complete = 0 + } else { + x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Failed = 0 + } else { + x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Starting = 0 + } else { + x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Lost = 0 + } else { + x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *UpdateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Stagger)); yyxt4 != nil { + z.EncExtension(x.Stagger, yyxt4) + } else { + r.EncodeInt(int64(x.Stagger)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stagger\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stagger`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { + z.EncExtension(x.Stagger, yyxt5) + } else { + r.EncodeInt(int64(x.Stagger)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxParallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthCheck\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt13 != nil { + z.EncExtension(x.MinHealthyTime, yyxt13) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinHealthyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { + z.EncExtension(x.MinHealthyTime, yyxt14) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { + z.EncExtension(x.HealthyDeadline, yyxt16) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt17 != nil { + z.EncExtension(x.HealthyDeadline, yyxt17) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt19 != nil { + z.EncExtension(x.ProgressDeadline, yyxt19) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProgressDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt20 != nil { + z.EncExtension(x.ProgressDeadline, yyxt20) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoRevert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoPromote\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Canary)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *UpdateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *UpdateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Stagger": + if r.TryDecodeAsNil() { + x.Stagger = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { + z.DecExtension(x.Stagger, yyxt5) + } else { + x.Stagger = (time.Duration)(r.DecodeInt64()) + } + } + case "MaxParallel": + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HealthCheck": + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + case "MinHealthyTime": + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt9 != nil { + z.DecExtension(x.MinHealthyTime, yyxt9) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + case "HealthyDeadline": + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt11 != nil { + z.DecExtension(x.HealthyDeadline, yyxt11) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + case "ProgressDeadline": + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt13 != nil { + z.DecExtension(x.ProgressDeadline, yyxt13) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + case "AutoRevert": + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + case "AutoPromote": + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *UpdateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stagger = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Stagger)); yyxt19 != nil { + z.DecExtension(x.Stagger, yyxt19) + } else { + x.Stagger = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt23 != nil { + z.DecExtension(x.MinHealthyTime, yyxt23) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt25 != nil { + z.DecExtension(x.HealthyDeadline, yyxt25) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt27 != nil { + z.DecExtension(x.ProgressDeadline, yyxt27) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Enabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Spec\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Spec`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SpecType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SpecType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ProhibitOverlap)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProhibitOverlap\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProhibitOverlap`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ProhibitOverlap)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TimeZone\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TimeZone`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Enabled": + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + case "Spec": + if r.TryDecodeAsNil() { + x.Spec = "" + } else { + x.Spec = (string)(r.DecodeString()) + } + case "SpecType": + if r.TryDecodeAsNil() { + x.SpecType = "" + } else { + x.SpecType = (string)(r.DecodeString()) + } + case "ProhibitOverlap": + if r.TryDecodeAsNil() { + x.ProhibitOverlap = false + } else { + x.ProhibitOverlap = (bool)(r.DecodeBool()) + } + case "TimeZone": + if r.TryDecodeAsNil() { + x.TimeZone = "" + } else { + x.TimeZone = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Spec = "" + } else { + x.Spec = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SpecType = "" + } else { + x.SpecType = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProhibitOverlap = false + } else { + x.ProhibitOverlap = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TimeZone = "" + } else { + x.TimeZone = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicLaunch) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Launch) + } else if yyxt10 := z.Extension(z.I2Rtid(x.Launch)); yyxt10 != nil { + z.EncExtension(x.Launch, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Launch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Launch) + } else { + z.EncFallback(x.Launch) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Launch\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Launch`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Launch) + } else if yyxt11 := z.Extension(z.I2Rtid(x.Launch)); yyxt11 != nil { + z.EncExtension(x.Launch, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Launch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Launch) + } else { + z.EncFallback(x.Launch) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicLaunch) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicLaunch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Launch": + if r.TryDecodeAsNil() { + x.Launch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Launch = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.Launch)); yyxt7 != nil { + z.DecExtension(x.Launch, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Launch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Launch) + } else { + z.DecFallback(&x.Launch, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicLaunch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Launch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Launch = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.Launch)); yyxt14 != nil { + z.DecExtension(x.Launch, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Launch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Launch) + } else { + z.DecFallback(&x.Launch, false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ParameterizedJobConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MetaRequired == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.MetaRequired, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MetaRequired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MetaRequired`) + } + r.WriteMapElemValue() + if x.MetaRequired == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.MetaRequired, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MetaOptional == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.MetaOptional, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MetaOptional\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MetaOptional`) + } + r.WriteMapElemValue() + if x.MetaOptional == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.MetaOptional, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ParameterizedJobConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ParameterizedJobConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = "" + } else { + x.Payload = (string)(r.DecodeString()) + } + case "MetaRequired": + if r.TryDecodeAsNil() { + x.MetaRequired = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.MetaRequired, d) + } + } + case "MetaOptional": + if r.TryDecodeAsNil() { + x.MetaOptional = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.MetaOptional, d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ParameterizedJobConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = "" + } else { + x.Payload = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MetaRequired = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.MetaRequired, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MetaOptional = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.MetaOptional, d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *DispatchPayloadConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.File))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"File\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `File`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.File))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DispatchPayloadConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DispatchPayloadConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "File": + if r.TryDecodeAsNil() { + x.File = "" + } else { + x.File = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DispatchPayloadConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.File = "" + } else { + x.File = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attempts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { + z.EncExtension(x.Interval, yyxt7) + } else { + r.EncodeInt(int64(x.Interval)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { + z.EncExtension(x.Interval, yyxt8) + } else { + r.EncodeInt(int64(x.Interval)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { + z.EncExtension(x.Delay, yyxt10) + } else { + r.EncodeInt(int64(x.Delay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { + z.EncExtension(x.Delay, yyxt11) + } else { + r.EncodeInt(int64(x.Delay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RestartPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attempts": + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Interval": + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { + z.DecExtension(x.Interval, yyxt6) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + case "Delay": + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { + z.DecExtension(x.Delay, yyxt8) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RestartPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.Interval)); yyxt13 != nil { + z.DecExtension(x.Interval, yyxt13) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Delay)); yyxt15 != nil { + z.DecExtension(x.Delay, yyxt15) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ReschedulePolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attempts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { + z.EncExtension(x.Interval, yyxt7) + } else { + r.EncodeInt(int64(x.Interval)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { + z.EncExtension(x.Interval, yyxt8) + } else { + r.EncodeInt(int64(x.Interval)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { + z.EncExtension(x.Delay, yyxt10) + } else { + r.EncodeInt(int64(x.Delay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { + z.EncExtension(x.Delay, yyxt11) + } else { + r.EncodeInt(int64(x.Delay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelayFunction\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelayFunction`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt16 != nil { + z.EncExtension(x.MaxDelay, yyxt16) + } else { + r.EncodeInt(int64(x.MaxDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxDelay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt17 != nil { + z.EncExtension(x.MaxDelay, yyxt17) + } else { + r.EncodeInt(int64(x.MaxDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Unlimited)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Unlimited\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Unlimited`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Unlimited)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ReschedulePolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ReschedulePolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attempts": + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Interval": + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { + z.DecExtension(x.Interval, yyxt6) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + case "Delay": + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { + z.DecExtension(x.Delay, yyxt8) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + case "DelayFunction": + if r.TryDecodeAsNil() { + x.DelayFunction = "" + } else { + x.DelayFunction = (string)(r.DecodeString()) + } + case "MaxDelay": + if r.TryDecodeAsNil() { + x.MaxDelay = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt11 != nil { + z.DecExtension(x.MaxDelay, yyxt11) + } else { + x.MaxDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "Unlimited": + if r.TryDecodeAsNil() { + x.Unlimited = false + } else { + x.Unlimited = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ReschedulePolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.Interval)); yyxt16 != nil { + z.DecExtension(x.Interval, yyxt16) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.Delay)); yyxt18 != nil { + z.DecExtension(x.Delay, yyxt18) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelayFunction = "" + } else { + x.DelayFunction = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxDelay = 0 + } else { + if false { + } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt21 != nil { + z.DecExtension(x.MaxDelay, yyxt21) + } else { + x.MaxDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Unlimited = false + } else { + x.Unlimited = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *MigrateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxParallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthCheck\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt10 != nil { + z.EncExtension(x.MinHealthyTime, yyxt10) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinHealthyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt11 != nil { + z.EncExtension(x.MinHealthyTime, yyxt11) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt13 != nil { + z.EncExtension(x.HealthyDeadline, yyxt13) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt14 != nil { + z.EncExtension(x.HealthyDeadline, yyxt14) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MigrateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *MigrateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MaxParallel": + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HealthCheck": + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + case "MinHealthyTime": + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt7 != nil { + z.DecExtension(x.MinHealthyTime, yyxt7) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + case "HealthyDeadline": + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt9 != nil { + z.DecExtension(x.HealthyDeadline, yyxt9) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MigrateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { + z.DecExtension(x.MinHealthyTime, yyxt14) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { + z.DecExtension(x.HealthyDeadline, yyxt16) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroup) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + var yyn9 bool + if x.Update == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Update == nil { + r.EncodeNil() + } else { + x.Update.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Update\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Update == nil { + r.EncodeNil() + } else { + x.Update.CodecEncodeSelf(e) + } + } + } + var yyn12 bool + if x.Migrate == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Migrate == nil { + r.EncodeNil() + } else { + x.Migrate.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Migrate == nil { + r.EncodeNil() + } else { + x.Migrate.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + var yyn18 bool + if x.RestartPolicy == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RestartPolicy == nil { + r.EncodeNil() + } else { + x.RestartPolicy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RestartPolicy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.RestartPolicy == nil { + r.EncodeNil() + } else { + x.RestartPolicy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) + } + } + } + var yyn24 bool + if x.EphemeralDisk == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.EphemeralDisk == nil { + r.EncodeNil() + } else { + x.EphemeralDisk.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EphemeralDisk\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EphemeralDisk`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.EphemeralDisk == nil { + r.EncodeNil() + } else { + x.EphemeralDisk.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + var yyn30 bool + if x.ReschedulePolicy == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ReschedulePolicy == nil { + r.EncodeNil() + } else { + x.ReschedulePolicy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReschedulePolicy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReschedulePolicy`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.ReschedulePolicy == nil { + r.EncodeNil() + } else { + x.ReschedulePolicy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Spreads\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) + } + r.WriteMapElemValue() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroup) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroup) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Update": + if r.TryDecodeAsNil() { + if true && x.Update != nil { + x.Update = nil + } + } else { + if x.Update == nil { + x.Update = new(UpdateStrategy) + } + + x.Update.CodecDecodeSelf(d) + } + case "Migrate": + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(MigrateStrategy) + } + + x.Migrate.CodecDecodeSelf(d) + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "RestartPolicy": + if r.TryDecodeAsNil() { + if true && x.RestartPolicy != nil { + x.RestartPolicy = nil + } + } else { + if x.RestartPolicy == nil { + x.RestartPolicy = new(RestartPolicy) + } + + x.RestartPolicy.CodecDecodeSelf(d) + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) + } + } + case "EphemeralDisk": + if r.TryDecodeAsNil() { + if true && x.EphemeralDisk != nil { + x.EphemeralDisk = nil + } + } else { + if x.EphemeralDisk == nil { + x.EphemeralDisk = new(EphemeralDisk) + } + + x.EphemeralDisk.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + case "ReschedulePolicy": + if r.TryDecodeAsNil() { + if true && x.ReschedulePolicy != nil { + x.ReschedulePolicy = nil + } + } else { + if x.ReschedulePolicy == nil { + x.ReschedulePolicy = new(ReschedulePolicy) + } + + x.ReschedulePolicy.CodecDecodeSelf(d) + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + case "Spreads": + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroup) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Update != nil { + x.Update = nil + } + } else { + if x.Update == nil { + x.Update = new(UpdateStrategy) + } + + x.Update.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(MigrateStrategy) + } + + x.Migrate.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RestartPolicy != nil { + x.RestartPolicy = nil + } + } else { + if x.RestartPolicy == nil { + x.RestartPolicy = new(RestartPolicy) + } + + x.RestartPolicy.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.EphemeralDisk != nil { + x.EphemeralDisk = nil + } + } else { + if x.EphemeralDisk == nil { + x.EphemeralDisk = new(EphemeralDisk) + } + + x.EphemeralDisk.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ReschedulePolicy != nil { + x.ReschedulePolicy = nil + } + } else { + if x.ReschedulePolicy == nil { + x.ReschedulePolicy = new(ReschedulePolicy) + } + + x.ReschedulePolicy.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) + } + } + for { + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj26-1, "") + } + r.ReadArrayEnd() +} + +func (x *CheckRestart) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Limit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Limit`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Grace)); yyxt7 != nil { + z.EncExtension(x.Grace, yyxt7) + } else { + r.EncodeInt(int64(x.Grace)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Grace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Grace`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Grace)); yyxt8 != nil { + z.EncExtension(x.Grace, yyxt8) + } else { + r.EncodeInt(int64(x.Grace)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IgnoreWarnings)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreWarnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreWarnings`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreWarnings)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CheckRestart) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CheckRestart) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Limit": + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Grace": + if r.TryDecodeAsNil() { + x.Grace = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Grace)); yyxt6 != nil { + z.DecExtension(x.Grace, yyxt6) + } else { + x.Grace = (time.Duration)(r.DecodeInt64()) + } + } + case "IgnoreWarnings": + if r.TryDecodeAsNil() { + x.IgnoreWarnings = false + } else { + x.IgnoreWarnings = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CheckRestart) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Grace = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Grace)); yyxt11 != nil { + z.DecExtension(x.Grace, yyxt11) + } else { + x.Grace = (time.Duration)(r.DecodeInt64()) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IgnoreWarnings = false + } else { + x.IgnoreWarnings = (bool)(r.DecodeBool()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *LogConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxFiles)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxFiles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFiles`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxFiles)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxFileSizeMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxFileSizeMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFileSizeMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxFileSizeMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *LogConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *LogConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MaxFiles": + if r.TryDecodeAsNil() { + x.MaxFiles = 0 + } else { + x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MaxFileSizeMB": + if r.TryDecodeAsNil() { + x.MaxFileSizeMB = 0 + } else { + x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *LogConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxFiles = 0 + } else { + x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxFileSizeMB = 0 + } else { + x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *Task) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(21) + } else { + r.WriteMapStart(21) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Driver\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `User`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntfV(x.Config, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntfV(x.Config, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Env, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Env, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } + var yyn21 bool + if x.Vault == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Vault == nil { + r.EncodeNil() + } else { + x.Vault.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vault\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vault`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.Vault == nil { + r.EncodeNil() + } else { + x.Vault.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Templates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Templates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Templates`) + } + r.WriteMapElemValue() + if x.Templates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } + var yyn33 bool + if x.Resources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + var yyn36 bool + if x.DispatchPayload == nil { + yyn36 = true + goto LABEL36 + } + LABEL36: + if yyr2 || yy2arr2 { + if yyn36 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DispatchPayload == nil { + r.EncodeNil() + } else { + x.DispatchPayload.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DispatchPayload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchPayload`) + } + r.WriteMapElemValue() + if yyn36 { + r.EncodeNil() + } else { + if x.DispatchPayload == nil { + r.EncodeNil() + } else { + x.DispatchPayload.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Meta, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt43 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt43 != nil { + z.EncExtension(x.KillTimeout, yyxt43) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt44 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt44 != nil { + z.EncExtension(x.KillTimeout, yyxt44) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } + var yyn45 bool + if x.LogConfig == nil { + yyn45 = true + goto LABEL45 + } + LABEL45: + if yyr2 || yy2arr2 { + if yyn45 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) + } + r.WriteMapElemValue() + if yyn45 { + r.EncodeNil() + } else { + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Artifacts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Artifacts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Artifacts`) + } + r.WriteMapElemValue() + if x.Artifacts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Leader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt55 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt55 != nil { + z.EncExtension(x.ShutdownDelay, yyxt55) + } else { + r.EncodeInt(int64(x.ShutdownDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt56 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt56 != nil { + z.EncExtension(x.ShutdownDelay, yyxt56) + } else { + r.EncodeInt(int64(x.ShutdownDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeMounts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeMounts`) + } + r.WriteMapElemValue() + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Kind.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Kind`) + } + r.WriteMapElemValue() + x.Kind.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Task) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Task) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Driver": + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + case "User": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + z.F.DecMapStringIntfX(&x.Config, d) + } + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Env, d) + } + } + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + case "Vault": + if r.TryDecodeAsNil() { + if true && x.Vault != nil { + x.Vault = nil + } + } else { + if x.Vault == nil { + x.Vault = new(Vault) + } + + x.Vault.CodecDecodeSelf(d) + } + case "Templates": + if r.TryDecodeAsNil() { + x.Templates = nil + } else { + if false { + } else { + h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) + } + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "DispatchPayload": + if r.TryDecodeAsNil() { + if true && x.DispatchPayload != nil { + x.DispatchPayload = nil + } + } else { + if x.DispatchPayload == nil { + x.DispatchPayload = new(DispatchPayloadConfig) + } + + x.DispatchPayload.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + case "KillTimeout": + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt25 != nil { + z.DecExtension(x.KillTimeout, yyxt25) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "LogConfig": + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + case "Artifacts": + if r.TryDecodeAsNil() { + x.Artifacts = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) + } + } + case "Leader": + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + case "ShutdownDelay": + if r.TryDecodeAsNil() { + x.ShutdownDelay = 0 + } else { + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt31 != nil { + z.DecExtension(x.ShutdownDelay, yyxt31) + } else { + x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "VolumeMounts": + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + if false { + } else { + h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) + } + } + case "KillSignal": + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + case "Kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Task) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj36 int + var yyb36 bool + var yyhl36 bool = l >= 0 + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + z.F.DecMapStringIntfX(&x.Config, d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Env, d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Vault != nil { + x.Vault = nil + } + } else { + if x.Vault == nil { + x.Vault = new(Vault) + } + + x.Vault.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Templates = nil + } else { + if false { + } else { + h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DispatchPayload != nil { + x.DispatchPayload = nil + } + } else { + if x.DispatchPayload == nil { + x.DispatchPayload = new(DispatchPayloadConfig) + } + + x.DispatchPayload.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Meta, d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt58 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt58 != nil { + z.DecExtension(x.KillTimeout, yyxt58) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Artifacts = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ShutdownDelay = 0 + } else { + if false { + } else if yyxt64 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt64 != nil { + z.DecExtension(x.ShutdownDelay, yyxt64) + } else { + x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + if false { + } else { + h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind.CodecDecodeSelf(d) + } + for { + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj36-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskKind) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *TaskKind) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (TaskKind)(r.DecodeString()) + } +} + +func (x *Template) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SourcePath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SourcePath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestPath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestPath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EmbeddedTmpl\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EmbeddedTmpl`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Splay)); yyxt19 != nil { + z.EncExtension(x.Splay, yyxt19) + } else { + r.EncodeInt(int64(x.Splay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Splay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Splay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.Splay)); yyxt20 != nil { + z.EncExtension(x.Splay, yyxt20) + } else { + r.EncodeInt(int64(x.Splay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Perms\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Perms`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LeftDelim\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LeftDelim`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RightDelim\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RightDelim`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Envvars)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Envvars\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Envvars`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Envvars)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt34 != nil { + z.EncExtension(x.VaultGrace, yyxt34) + } else { + r.EncodeInt(int64(x.VaultGrace)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultGrace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultGrace`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt35 != nil { + z.EncExtension(x.VaultGrace, yyxt35) + } else { + r.EncodeInt(int64(x.VaultGrace)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Template) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Template) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SourcePath": + if r.TryDecodeAsNil() { + x.SourcePath = "" + } else { + x.SourcePath = (string)(r.DecodeString()) + } + case "DestPath": + if r.TryDecodeAsNil() { + x.DestPath = "" + } else { + x.DestPath = (string)(r.DecodeString()) + } + case "EmbeddedTmpl": + if r.TryDecodeAsNil() { + x.EmbeddedTmpl = "" + } else { + x.EmbeddedTmpl = (string)(r.DecodeString()) + } + case "ChangeMode": + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + case "ChangeSignal": + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + case "Splay": + if r.TryDecodeAsNil() { + x.Splay = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Splay)); yyxt10 != nil { + z.DecExtension(x.Splay, yyxt10) + } else { + x.Splay = (time.Duration)(r.DecodeInt64()) + } + } + case "Perms": + if r.TryDecodeAsNil() { + x.Perms = "" + } else { + x.Perms = (string)(r.DecodeString()) + } + case "LeftDelim": + if r.TryDecodeAsNil() { + x.LeftDelim = "" + } else { + x.LeftDelim = (string)(r.DecodeString()) + } + case "RightDelim": + if r.TryDecodeAsNil() { + x.RightDelim = "" + } else { + x.RightDelim = (string)(r.DecodeString()) + } + case "Envvars": + if r.TryDecodeAsNil() { + x.Envvars = false + } else { + x.Envvars = (bool)(r.DecodeBool()) + } + case "VaultGrace": + if r.TryDecodeAsNil() { + x.VaultGrace = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt16 != nil { + z.DecExtension(x.VaultGrace, yyxt16) + } else { + x.VaultGrace = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Template) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SourcePath = "" + } else { + x.SourcePath = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestPath = "" + } else { + x.DestPath = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EmbeddedTmpl = "" + } else { + x.EmbeddedTmpl = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Splay = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.Splay)); yyxt24 != nil { + z.DecExtension(x.Splay, yyxt24) + } else { + x.Splay = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Perms = "" + } else { + x.Perms = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LeftDelim = "" + } else { + x.LeftDelim = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RightDelim = "" + } else { + x.RightDelim = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Envvars = false + } else { + x.Envvars = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultGrace = 0 + } else { + if false { + } else if yyxt30 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt30 != nil { + z.DecExtension(x.VaultGrace, yyxt30) + } else { + x.VaultGrace = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.State))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.State))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Failed)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Failed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Failed)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Restarts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Restarts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Restarts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Restarts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.LastRestart) + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt13 != nil { + z.EncExtension(x.LastRestart, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.LastRestart) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastRestart) + } else { + z.EncFallback(x.LastRestart) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastRestart\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastRestart`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.LastRestart) + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt14 != nil { + z.EncExtension(x.LastRestart, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.LastRestart) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastRestart) + } else { + z.EncFallback(x.LastRestart) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt16 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt16 != nil { + z.EncExtension(x.StartedAt, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StartedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt17 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt17 != nil { + z.EncExtension(x.StartedAt, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.FinishedAt) + } else if yyxt19 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt19 != nil { + z.EncExtension(x.FinishedAt, yyxt19) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.FinishedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.FinishedAt) + } else { + z.EncFallback(x.FinishedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FinishedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FinishedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.FinishedAt) + } else if yyxt20 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt20 != nil { + z.EncExtension(x.FinishedAt, yyxt20) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.FinishedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.FinishedAt) + } else { + z.EncFallback(x.FinishedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State = (string)(r.DecodeString()) + } + case "Failed": + if r.TryDecodeAsNil() { + x.Failed = false + } else { + x.Failed = (bool)(r.DecodeBool()) + } + case "Restarts": + if r.TryDecodeAsNil() { + x.Restarts = 0 + } else { + x.Restarts = (uint64)(r.DecodeUint64()) + } + case "LastRestart": + if r.TryDecodeAsNil() { + x.LastRestart = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.LastRestart = r.DecodeTime() + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt8 != nil { + z.DecExtension(x.LastRestart, yyxt8) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.LastRestart) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.LastRestart) + } else { + z.DecFallback(&x.LastRestart, false) + } + } + case "StartedAt": + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { + z.DecExtension(x.StartedAt, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + case "FinishedAt": + if r.TryDecodeAsNil() { + x.FinishedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.FinishedAt = r.DecodeTime() + } else if yyxt12 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt12 != nil { + z.DecExtension(x.FinishedAt, yyxt12) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.FinishedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.FinishedAt) + } else { + z.DecFallback(&x.FinishedAt, false) + } + } + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Failed = false + } else { + x.Failed = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Restarts = 0 + } else { + x.Restarts = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastRestart = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.LastRestart = r.DecodeTime() + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt20 != nil { + z.DecExtension(x.LastRestart, yyxt20) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.LastRestart) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.LastRestart) + } else { + z.DecFallback(&x.LastRestart, false) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt22 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt22 != nil { + z.DecExtension(x.StartedAt, yyxt22) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FinishedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.FinishedAt = r.DecodeTime() + } else if yyxt24 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt24 != nil { + z.DecExtension(x.FinishedAt, yyxt24) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.FinishedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.FinishedAt) + } else { + z.DecFallback(&x.FinishedAt, false) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) + } + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(24) + } else { + r.WriteMapStart(24) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Time)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Time\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Time)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisplayMessage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisplayMessage`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Details, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Details\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) + } + r.WriteMapElemValue() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Details, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.FailsTask)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailsTask\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailsTask`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.FailsTask)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RestartReason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RestartReason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SetupError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SetupError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DriverError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DriverError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExitCode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExitCode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt37 != nil { + z.EncExtension(x.KillTimeout, yyxt37) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt38 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt38 != nil { + z.EncExtension(x.KillTimeout, yyxt38) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillReason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillReason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.StartDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StartDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StartDelay`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.StartDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DownloadError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DownloadError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ValidationError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskLimit)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskLimit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskLimit`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskLimit)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailedSibling\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailedSibling`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskSignalReason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignalReason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DriverMessage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DriverMessage`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GenericSource\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GenericSource`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Time": + if r.TryDecodeAsNil() { + x.Time = 0 + } else { + x.Time = (int64)(r.DecodeInt64()) + } + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "DisplayMessage": + if r.TryDecodeAsNil() { + x.DisplayMessage = "" + } else { + x.DisplayMessage = (string)(r.DecodeString()) + } + case "Details": + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Details, d) + } + } + case "FailsTask": + if r.TryDecodeAsNil() { + x.FailsTask = false + } else { + x.FailsTask = (bool)(r.DecodeBool()) + } + case "RestartReason": + if r.TryDecodeAsNil() { + x.RestartReason = "" + } else { + x.RestartReason = (string)(r.DecodeString()) + } + case "SetupError": + if r.TryDecodeAsNil() { + x.SetupError = "" + } else { + x.SetupError = (string)(r.DecodeString()) + } + case "DriverError": + if r.TryDecodeAsNil() { + x.DriverError = "" + } else { + x.DriverError = (string)(r.DecodeString()) + } + case "ExitCode": + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Signal": + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "KillTimeout": + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt17 != nil { + z.DecExtension(x.KillTimeout, yyxt17) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "KillError": + if r.TryDecodeAsNil() { + x.KillError = "" + } else { + x.KillError = (string)(r.DecodeString()) + } + case "KillReason": + if r.TryDecodeAsNil() { + x.KillReason = "" + } else { + x.KillReason = (string)(r.DecodeString()) + } + case "StartDelay": + if r.TryDecodeAsNil() { + x.StartDelay = 0 + } else { + x.StartDelay = (int64)(r.DecodeInt64()) + } + case "DownloadError": + if r.TryDecodeAsNil() { + x.DownloadError = "" + } else { + x.DownloadError = (string)(r.DecodeString()) + } + case "ValidationError": + if r.TryDecodeAsNil() { + x.ValidationError = "" + } else { + x.ValidationError = (string)(r.DecodeString()) + } + case "DiskLimit": + if r.TryDecodeAsNil() { + x.DiskLimit = 0 + } else { + x.DiskLimit = (int64)(r.DecodeInt64()) + } + case "FailedSibling": + if r.TryDecodeAsNil() { + x.FailedSibling = "" + } else { + x.FailedSibling = (string)(r.DecodeString()) + } + case "VaultError": + if r.TryDecodeAsNil() { + x.VaultError = "" + } else { + x.VaultError = (string)(r.DecodeString()) + } + case "TaskSignalReason": + if r.TryDecodeAsNil() { + x.TaskSignalReason = "" + } else { + x.TaskSignalReason = (string)(r.DecodeString()) + } + case "TaskSignal": + if r.TryDecodeAsNil() { + x.TaskSignal = "" + } else { + x.TaskSignal = (string)(r.DecodeString()) + } + case "DriverMessage": + if r.TryDecodeAsNil() { + x.DriverMessage = "" + } else { + x.DriverMessage = (string)(r.DecodeString()) + } + case "GenericSource": + if r.TryDecodeAsNil() { + x.GenericSource = "" + } else { + x.GenericSource = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj30 int + var yyb30 bool + var yyhl30 bool = l >= 0 + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Time = 0 + } else { + x.Time = (int64)(r.DecodeInt64()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisplayMessage = "" + } else { + x.DisplayMessage = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Details, d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailsTask = false + } else { + x.FailsTask = (bool)(r.DecodeBool()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RestartReason = "" + } else { + x.RestartReason = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SetupError = "" + } else { + x.SetupError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DriverError = "" + } else { + x.DriverError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt44 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt44 != nil { + z.DecExtension(x.KillTimeout, yyxt44) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillError = "" + } else { + x.KillError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillReason = "" + } else { + x.KillReason = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StartDelay = 0 + } else { + x.StartDelay = (int64)(r.DecodeInt64()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DownloadError = "" + } else { + x.DownloadError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ValidationError = "" + } else { + x.ValidationError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskLimit = 0 + } else { + x.DiskLimit = (int64)(r.DecodeInt64()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailedSibling = "" + } else { + x.FailedSibling = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultError = "" + } else { + x.VaultError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskSignalReason = "" + } else { + x.TaskSignalReason = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskSignal = "" + } else { + x.TaskSignal = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DriverMessage = "" + } else { + x.DriverMessage = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GenericSource = "" + } else { + x.GenericSource = (string)(r.DecodeString()) + } + for { + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj30-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskArtifact) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterSource\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterSource`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.GetterOptions == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.GetterOptions, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterOptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterOptions`) + } + r.WriteMapElemValue() + if x.GetterOptions == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.GetterOptions, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RelativeDest\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RelativeDest`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskArtifact) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskArtifact) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "GetterSource": + if r.TryDecodeAsNil() { + x.GetterSource = "" + } else { + x.GetterSource = (string)(r.DecodeString()) + } + case "GetterOptions": + if r.TryDecodeAsNil() { + x.GetterOptions = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.GetterOptions, d) + } + } + case "GetterMode": + if r.TryDecodeAsNil() { + x.GetterMode = "" + } else { + x.GetterMode = (string)(r.DecodeString()) + } + case "RelativeDest": + if r.TryDecodeAsNil() { + x.RelativeDest = "" + } else { + x.RelativeDest = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskArtifact) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterSource = "" + } else { + x.GetterSource = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterOptions = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.GetterOptions, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterMode = "" + } else { + x.GetterMode = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RelativeDest = "" + } else { + x.RelativeDest = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *Constraint) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Operand\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Constraint) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Constraint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LTarget": + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + case "RTarget": + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + case "Operand": + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Constraint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x Constraints) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encConstraints((Constraints)(x), e) + } + } +} + +func (x *Constraints) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decConstraints((*Constraints)(x), d) + } +} + +func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Operand\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Weight\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LTarget": + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + case "RTarget": + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + case "Operand": + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + case "Weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *Spread) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attribute\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attribute`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Weight\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.SpreadTarget == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SpreadTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SpreadTarget`) + } + r.WriteMapElemValue() + if x.SpreadTarget == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Spread) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Spread) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attribute": + if r.TryDecodeAsNil() { + x.Attribute = "" + } else { + x.Attribute = (string)(r.DecodeString()) + } + case "Weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + case "SpreadTarget": + if r.TryDecodeAsNil() { + x.SpreadTarget = nil + } else { + if false { + } else { + h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Spread) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attribute = "" + } else { + x.Attribute = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SpreadTarget = nil + } else { + if false { + } else { + h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x Affinities) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encAffinities((Affinities)(x), e) + } + } +} + +func (x *Affinities) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decAffinities((*Affinities)(x), d) + } +} + +func (x *SpreadTarget) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Percent)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Percent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Percent`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Percent)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SpreadTarget) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SpreadTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = (string)(r.DecodeString()) + } + case "Percent": + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SpreadTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *EphemeralDisk) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Sticky)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Sticky\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Sticky`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Sticky)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SizeMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SizeMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SizeMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SizeMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Migrate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Migrate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EphemeralDisk) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EphemeralDisk) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Sticky": + if r.TryDecodeAsNil() { + x.Sticky = false + } else { + x.Sticky = (bool)(r.DecodeBool()) + } + case "SizeMB": + if r.TryDecodeAsNil() { + x.SizeMB = 0 + } else { + x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Migrate": + if r.TryDecodeAsNil() { + x.Migrate = false + } else { + x.Migrate = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EphemeralDisk) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Sticky = false + } else { + x.Sticky = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SizeMB = 0 + } else { + x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Migrate = false + } else { + x.Migrate = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *Vault) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Policies, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Policies, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Env)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Env)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Vault) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Vault) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Policies, d) + } + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = false + } else { + x.Env = (bool)(r.DecodeBool()) + } + case "ChangeMode": + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + case "ChangeSignal": + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Vault) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Policies, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = false + } else { + x.Env = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobSpecModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobSpecModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobSpecModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobSpecModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobSpecModifyIndex": + if r.TryDecodeAsNil() { + x.JobSpecModifyIndex = 0 + } else { + x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobCreateIndex": + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) + } + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobSpecModifyIndex = 0 + } else { + x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoRevert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoPromote\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt10 != nil { + z.EncExtension(x.ProgressDeadline, yyxt10) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProgressDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt11 != nil { + z.EncExtension(x.ProgressDeadline, yyxt11) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.RequireProgressBy) + } else if yyxt13 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt13 != nil { + z.EncExtension(x.RequireProgressBy, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.RequireProgressBy) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.RequireProgressBy) + } else { + z.EncFallback(x.RequireProgressBy) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequireProgressBy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequireProgressBy`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.RequireProgressBy) + } else if yyxt14 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt14 != nil { + z.EncExtension(x.RequireProgressBy, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.RequireProgressBy) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.RequireProgressBy) + } else { + z.EncFallback(x.RequireProgressBy) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Promoted)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Promoted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Promoted`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Promoted)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PlacedCanaries == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PlacedCanaries, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlacedCanaries\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedCanaries`) + } + r.WriteMapElemValue() + if x.PlacedCanaries == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PlacedCanaries, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DesiredCanaries)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredCanaries\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredCanaries`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DesiredCanaries)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DesiredTotal)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTotal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTotal`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DesiredTotal)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PlacedAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlacedAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PlacedAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.HealthyAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.HealthyAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UnhealthyAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UnhealthyAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UnhealthyAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AutoRevert": + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + case "AutoPromote": + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + case "ProgressDeadline": + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt7 != nil { + z.DecExtension(x.ProgressDeadline, yyxt7) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + case "RequireProgressBy": + if r.TryDecodeAsNil() { + x.RequireProgressBy = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.RequireProgressBy = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt9 != nil { + z.DecExtension(x.RequireProgressBy, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.RequireProgressBy) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.RequireProgressBy) + } else { + z.DecFallback(&x.RequireProgressBy, false) + } + } + case "Promoted": + if r.TryDecodeAsNil() { + x.Promoted = false + } else { + x.Promoted = (bool)(r.DecodeBool()) + } + case "PlacedCanaries": + if r.TryDecodeAsNil() { + x.PlacedCanaries = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PlacedCanaries, d) + } + } + case "DesiredCanaries": + if r.TryDecodeAsNil() { + x.DesiredCanaries = 0 + } else { + x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "DesiredTotal": + if r.TryDecodeAsNil() { + x.DesiredTotal = 0 + } else { + x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "PlacedAllocs": + if r.TryDecodeAsNil() { + x.PlacedAllocs = 0 + } else { + x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HealthyAllocs": + if r.TryDecodeAsNil() { + x.HealthyAllocs = 0 + } else { + x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "UnhealthyAllocs": + if r.TryDecodeAsNil() { + x.UnhealthyAllocs = 0 + } else { + x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt22 != nil { + z.DecExtension(x.ProgressDeadline, yyxt22) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequireProgressBy = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.RequireProgressBy = r.DecodeTime() + } else if yyxt24 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt24 != nil { + z.DecExtension(x.RequireProgressBy, yyxt24) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.RequireProgressBy) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.RequireProgressBy) + } else { + z.DecFallback(&x.RequireProgressBy, false) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Promoted = false + } else { + x.Promoted = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlacedCanaries = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PlacedCanaries, d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredCanaries = 0 + } else { + x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTotal = 0 + } else { + x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlacedAllocs = 0 + } else { + x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyAllocs = 0 + } else { + x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UnhealthyAllocs = 0 + } else { + x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentStatusUpdate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentStatusUpdate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentStatusUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentStatusUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *RescheduleTracker) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RescheduleTracker) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RescheduleTracker) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RescheduleTracker) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *RescheduleEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RescheduleTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RescheduleTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PrevAllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PrevAllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PrevNodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PrevNodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.Delay)); yyxt13 != nil { + z.EncExtension(x.Delay, yyxt13) + } else { + r.EncodeInt(int64(x.Delay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { + z.EncExtension(x.Delay, yyxt14) + } else { + r.EncodeInt(int64(x.Delay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RescheduleEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RescheduleEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RescheduleTime": + if r.TryDecodeAsNil() { + x.RescheduleTime = 0 + } else { + x.RescheduleTime = (int64)(r.DecodeInt64()) + } + case "PrevAllocID": + if r.TryDecodeAsNil() { + x.PrevAllocID = "" + } else { + x.PrevAllocID = (string)(r.DecodeString()) + } + case "PrevNodeID": + if r.TryDecodeAsNil() { + x.PrevNodeID = "" + } else { + x.PrevNodeID = (string)(r.DecodeString()) + } + case "Delay": + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { + z.DecExtension(x.Delay, yyxt8) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RescheduleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RescheduleTime = 0 + } else { + x.RescheduleTime = (int64)(r.DecodeInt64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PrevAllocID = "" + } else { + x.PrevAllocID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PrevNodeID = "" + } else { + x.PrevNodeID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { + z.DecExtension(x.Delay, yyxt14) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *DesiredTransition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.Migrate == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Migrate == nil { + r.EncodeNil() + } else { + yy4 := *x.Migrate + if false { + } else { + r.EncodeBool(bool(yy4)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Migrate == nil { + r.EncodeNil() + } else { + yy6 := *x.Migrate + if false { + } else { + r.EncodeBool(bool(yy6)) + } + } + } + } + var yyn8 bool + if x.Reschedule == nil { + yyn8 = true + goto LABEL8 + } + LABEL8: + if yyr2 || yy2arr2 { + if yyn8 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Reschedule == nil { + r.EncodeNil() + } else { + yy9 := *x.Reschedule + if false { + } else { + r.EncodeBool(bool(yy9)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reschedule`) + } + r.WriteMapElemValue() + if yyn8 { + r.EncodeNil() + } else { + if x.Reschedule == nil { + r.EncodeNil() + } else { + yy11 := *x.Reschedule + if false { + } else { + r.EncodeBool(bool(yy11)) + } + } + } + } + var yyn13 bool + if x.ForceReschedule == nil { + yyn13 = true + goto LABEL13 + } + LABEL13: + if yyr2 || yy2arr2 { + if yyn13 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ForceReschedule == nil { + r.EncodeNil() + } else { + yy14 := *x.ForceReschedule + if false { + } else { + r.EncodeBool(bool(yy14)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ForceReschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) + } + r.WriteMapElemValue() + if yyn13 { + r.EncodeNil() + } else { + if x.ForceReschedule == nil { + r.EncodeNil() + } else { + yy16 := *x.ForceReschedule + if false { + } else { + r.EncodeBool(bool(yy16)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DesiredTransition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DesiredTransition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Migrate": + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(bool) + } + + if false { + } else { + *x.Migrate = (bool)(r.DecodeBool()) + } + } + case "Reschedule": + if r.TryDecodeAsNil() { + if true && x.Reschedule != nil { + x.Reschedule = nil + } + } else { + if x.Reschedule == nil { + x.Reschedule = new(bool) + } + + if false { + } else { + *x.Reschedule = (bool)(r.DecodeBool()) + } + } + case "ForceReschedule": + if r.TryDecodeAsNil() { + if true && x.ForceReschedule != nil { + x.ForceReschedule = nil + } + } else { + if x.ForceReschedule == nil { + x.ForceReschedule = new(bool) + } + + if false { + } else { + *x.ForceReschedule = (bool)(r.DecodeBool()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DesiredTransition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(bool) + } + + if false { + } else { + *x.Migrate = (bool)(r.DecodeBool()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Reschedule != nil { + x.Reschedule = nil + } + } else { + if x.Reschedule == nil { + x.Reschedule = new(bool) + } + + if false { + } else { + *x.Reschedule = (bool)(r.DecodeBool()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ForceReschedule != nil { + x.ForceReschedule = nil + } + } else { + if x.ForceReschedule == nil { + x.ForceReschedule = new(bool) + } + + if false { + } else { + *x.ForceReschedule = (bool)(r.DecodeBool()) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *Allocation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [33]bool{ // should field at this index be written? + x.ID != "", // ID + x.Namespace != "", // Namespace + x.EvalID != "", // EvalID + x.Name != "", // Name + x.NodeID != "", // NodeID + x.NodeName != "", // NodeName + x.JobID != "", // JobID + x.Job != nil, // Job + x.TaskGroup != "", // TaskGroup + x.Resources != nil, // Resources + x.SharedResources != nil, // SharedResources + len(x.TaskResources) != 0, // TaskResources + x.AllocatedResources != nil, // AllocatedResources + x.Metrics != nil, // Metrics + x.DesiredStatus != "", // DesiredStatus + x.DesiredDescription != "", // DesiredDescription + x.DesiredTransition != DesiredTransition{}, // DesiredTransition + x.ClientStatus != "", // ClientStatus + x.ClientDescription != "", // ClientDescription + len(x.TaskStates) != 0, // TaskStates + x.PreviousAllocation != "", // PreviousAllocation + x.NextAllocation != "", // NextAllocation + x.DeploymentID != "", // DeploymentID + x.DeploymentStatus != nil, // DeploymentStatus + x.RescheduleTracker != nil, // RescheduleTracker + x.FollowupEvalID != "", // FollowupEvalID + len(x.PreemptedAllocations) != 0, // PreemptedAllocations + x.PreemptedByAllocation != "", // PreemptedByAllocation + x.CreateIndex != 0, // CreateIndex + x.ModifyIndex != 0, // ModifyIndex + x.AllocModifyIndex != 0, // AllocModifyIndex + x.CreateTime != 0, // CreateTime + x.ModifyTime != 0, // ModifyTime + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(33) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + } + var yyn24 bool + if x.Job == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[7] { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + } + var yyn30 bool + if x.Resources == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[9] { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + } + var yyn33 bool + if x.SharedResources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[10] { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SharedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) + } + r.WriteMapElemValue() + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } + } + var yyn39 bool + if x.AllocatedResources == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[12] { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[12] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocatedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } + } + } + var yyn42 bool + if x.Metrics == nil { + yyn42 = true + goto LABEL42 + } + LABEL42: + if yyr2 || yy2arr2 { + if yyn42 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[13] { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[13] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Metrics\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) + } + r.WriteMapElemValue() + if yyn42 { + r.EncodeNil() + } else { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[14] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[14] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[15] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[15] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[16] { + yy52 := &x.DesiredTransition + yy52.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[16] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTransition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) + } + r.WriteMapElemValue() + yy54 := &x.DesiredTransition + yy54.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[17] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[17] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[18] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[18] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[19] { + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[19] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[20] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[20] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[21] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[21] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[22] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[22] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + } + var yyn74 bool + if x.DeploymentStatus == nil { + yyn74 = true + goto LABEL74 + } + LABEL74: + if yyr2 || yy2arr2 { + if yyn74 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[23] { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[23] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + if yyn74 { + r.EncodeNil() + } else { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } + } + var yyn77 bool + if x.RescheduleTracker == nil { + yyn77 = true + goto LABEL77 + } + LABEL77: + if yyr2 || yy2arr2 { + if yyn77 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[24] { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[24] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTracker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) + } + r.WriteMapElemValue() + if yyn77 { + r.EncodeNil() + } else { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[25] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[25] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[26] { + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PreemptedAllocations, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[26] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) + } + r.WriteMapElemValue() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PreemptedAllocations, e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[27] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[27] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedByAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[28] { + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[28] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[29] { + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[29] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[30] { + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[30] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[31] { + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[31] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[32] { + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[32] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Allocation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Allocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "SharedResources": + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + case "TaskResources": + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + case "AllocatedResources": + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + case "Metrics": + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + case "DesiredStatus": + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + case "DesiredDescription": + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + case "DesiredTransition": + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "ClientDescription": + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + case "PreviousAllocation": + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + case "NextAllocation": + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "RescheduleTracker": + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "PreemptedAllocations": + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PreemptedAllocations, d) + } + } + case "PreemptedByAllocation": + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "AllocModifyIndex": + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Allocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj40 int + var yyb40 bool + var yyhl40 bool = l >= 0 + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PreemptedAllocations, d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj40-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocationDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [33]bool{ // should field at this index be written? + x.ID != "", // ID + x.Namespace != "", // Namespace + x.EvalID != "", // EvalID + x.Name != "", // Name + x.NodeID != "", // NodeID + x.NodeName != "", // NodeName + x.JobID != "", // JobID + x.Job != nil, // Job + x.TaskGroup != "", // TaskGroup + x.Resources != nil, // Resources + x.SharedResources != nil, // SharedResources + len(x.TaskResources) != 0, // TaskResources + x.AllocatedResources != nil, // AllocatedResources + x.Metrics != nil, // Metrics + x.DesiredStatus != "", // DesiredStatus + x.DesiredDescription != "", // DesiredDescription + x.DesiredTransition != DesiredTransition{}, // DesiredTransition + x.ClientStatus != "", // ClientStatus + x.ClientDescription != "", // ClientDescription + len(x.TaskStates) != 0, // TaskStates + x.PreviousAllocation != "", // PreviousAllocation + x.NextAllocation != "", // NextAllocation + x.DeploymentID != "", // DeploymentID + x.DeploymentStatus != nil, // DeploymentStatus + x.RescheduleTracker != nil, // RescheduleTracker + x.FollowupEvalID != "", // FollowupEvalID + len(x.PreemptedAllocations) != 0, // PreemptedAllocations + x.PreemptedByAllocation != "", // PreemptedByAllocation + x.CreateIndex != 0, // CreateIndex + x.ModifyIndex != 0, // ModifyIndex + x.AllocModifyIndex != 0, // AllocModifyIndex + x.CreateTime != 0, // CreateTime + x.ModifyTime != 0, // ModifyTime + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(33) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + } + var yyn24 bool + if x.Job == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[7] { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + } + var yyn30 bool + if x.Resources == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[9] { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + } + var yyn33 bool + if x.SharedResources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[10] { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SharedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) + } + r.WriteMapElemValue() + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } + } + var yyn39 bool + if x.AllocatedResources == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[12] { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[12] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocatedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } + } + } + var yyn42 bool + if x.Metrics == nil { + yyn42 = true + goto LABEL42 + } + LABEL42: + if yyr2 || yy2arr2 { + if yyn42 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[13] { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[13] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Metrics\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) + } + r.WriteMapElemValue() + if yyn42 { + r.EncodeNil() + } else { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[14] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[14] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[15] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[15] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[16] { + yy52 := &x.DesiredTransition + yy52.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[16] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTransition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) + } + r.WriteMapElemValue() + yy54 := &x.DesiredTransition + yy54.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[17] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[17] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[18] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[18] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[19] { + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[19] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[20] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[20] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[21] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[21] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[22] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[22] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + } + var yyn74 bool + if x.DeploymentStatus == nil { + yyn74 = true + goto LABEL74 + } + LABEL74: + if yyr2 || yy2arr2 { + if yyn74 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[23] { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[23] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + if yyn74 { + r.EncodeNil() + } else { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } + } + var yyn77 bool + if x.RescheduleTracker == nil { + yyn77 = true + goto LABEL77 + } + LABEL77: + if yyr2 || yy2arr2 { + if yyn77 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[24] { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[24] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTracker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) + } + r.WriteMapElemValue() + if yyn77 { + r.EncodeNil() + } else { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[25] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[25] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[26] { + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PreemptedAllocations, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[26] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) + } + r.WriteMapElemValue() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PreemptedAllocations, e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[27] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[27] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedByAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[28] { + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[28] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[29] { + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[29] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[30] { + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[30] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[31] { + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[31] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[32] { + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[32] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocationDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocationDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "SharedResources": + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + case "TaskResources": + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + case "AllocatedResources": + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + case "Metrics": + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + case "DesiredStatus": + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + case "DesiredDescription": + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + case "DesiredTransition": + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "ClientDescription": + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + case "PreviousAllocation": + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + case "NextAllocation": + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "RescheduleTracker": + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "PreemptedAllocations": + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PreemptedAllocations, d) + } + } + case "PreemptedByAllocation": + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "AllocModifyIndex": + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocationDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj40 int + var yyb40 bool + var yyhl40 bool = l >= 0 + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PreemptedAllocations, d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj40-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(25) + } else { + r.WriteMapStart(25) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy46 := &x.DesiredTransition + yy46.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTransition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) + } + r.WriteMapElemValue() + yy48 := &x.DesiredTransition + yy48.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } + var yyn53 bool + if x.DeploymentStatus == nil { + yyn53 = true + goto LABEL53 + } + LABEL53: + if yyr2 || yy2arr2 { + if yyn53 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + if yyn53 { + r.EncodeNil() + } else { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + var yyn59 bool + if x.RescheduleTracker == nil { + yyn59 = true + goto LABEL59 + } + LABEL59: + if yyr2 || yy2arr2 { + if yyn59 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTracker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) + } + r.WriteMapElemValue() + if yyn59 { + r.EncodeNil() + } else { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PreemptedAllocations, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) + } + r.WriteMapElemValue() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.PreemptedAllocations, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedByAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobType": + if r.TryDecodeAsNil() { + x.JobType = "" + } else { + x.JobType = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "DesiredStatus": + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + case "DesiredDescription": + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "ClientDescription": + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + case "DesiredTransition": + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "RescheduleTracker": + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + case "PreemptedAllocations": + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PreemptedAllocations, d) + } + } + case "PreemptedByAllocation": + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj31 int + var yyb31 bool + var yyhl31 bool = l >= 0 + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobType = "" + } else { + x.JobType = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.PreemptedAllocations, d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj31-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocMetric) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesEvaluated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesEvaluated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesEvaluated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesEvaluated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesFiltered)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesFiltered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesFiltered`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesFiltered)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodesAvailable == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.NodesAvailable, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesAvailable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesAvailable`) + } + r.WriteMapElemValue() + if x.NodesAvailable == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.NodesAvailable, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ClassFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.ClassFiltered, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClassFiltered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClassFiltered`) + } + r.WriteMapElemValue() + if x.ClassFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.ClassFiltered, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ConstraintFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.ConstraintFiltered, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ConstraintFiltered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ConstraintFiltered`) + } + r.WriteMapElemValue() + if x.ConstraintFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.ConstraintFiltered, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesExhausted)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExhausted`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesExhausted)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ClassExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.ClassExhausted, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClassExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClassExhausted`) + } + r.WriteMapElemValue() + if x.ClassExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.ClassExhausted, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DimensionExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.DimensionExhausted, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DimensionExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DimensionExhausted`) + } + r.WriteMapElemValue() + if x.DimensionExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.DimensionExhausted, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.QuotaExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.QuotaExhausted, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"QuotaExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaExhausted`) + } + r.WriteMapElemValue() + if x.QuotaExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.QuotaExhausted, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringFloat64V(x.Scores, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Scores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) + } + r.WriteMapElemValue() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringFloat64V(x.Scores, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ScoreMetaData == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScoreMetaData\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScoreMetaData`) + } + r.WriteMapElemValue() + if x.ScoreMetaData == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt37 != nil { + z.EncExtension(x.AllocationTime, yyxt37) + } else { + r.EncodeInt(int64(x.AllocationTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocationTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt38 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt38 != nil { + z.EncExtension(x.AllocationTime, yyxt38) + } else { + r.EncodeInt(int64(x.AllocationTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CoalescedFailures)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CoalescedFailures\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CoalescedFailures`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CoalescedFailures)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocMetric) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocMetric) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodesEvaluated": + if r.TryDecodeAsNil() { + x.NodesEvaluated = 0 + } else { + x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesFiltered": + if r.TryDecodeAsNil() { + x.NodesFiltered = 0 + } else { + x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesAvailable": + if r.TryDecodeAsNil() { + x.NodesAvailable = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.NodesAvailable, d) + } + } + case "ClassFiltered": + if r.TryDecodeAsNil() { + x.ClassFiltered = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.ClassFiltered, d) + } + } + case "ConstraintFiltered": + if r.TryDecodeAsNil() { + x.ConstraintFiltered = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.ConstraintFiltered, d) + } + } + case "NodesExhausted": + if r.TryDecodeAsNil() { + x.NodesExhausted = 0 + } else { + x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ClassExhausted": + if r.TryDecodeAsNil() { + x.ClassExhausted = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.ClassExhausted, d) + } + } + case "DimensionExhausted": + if r.TryDecodeAsNil() { + x.DimensionExhausted = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.DimensionExhausted, d) + } + } + case "QuotaExhausted": + if r.TryDecodeAsNil() { + x.QuotaExhausted = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.QuotaExhausted, d) + } + } + case "Scores": + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + z.F.DecMapStringFloat64X(&x.Scores, d) + } + } + case "ScoreMetaData": + if r.TryDecodeAsNil() { + x.ScoreMetaData = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) + } + } + case "AllocationTime": + if r.TryDecodeAsNil() { + x.AllocationTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt24 != nil { + z.DecExtension(x.AllocationTime, yyxt24) + } else { + x.AllocationTime = (time.Duration)(r.DecodeInt64()) + } + } + case "CoalescedFailures": + if r.TryDecodeAsNil() { + x.CoalescedFailures = 0 + } else { + x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocMetric) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesEvaluated = 0 + } else { + x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesFiltered = 0 + } else { + x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesAvailable = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.NodesAvailable, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClassFiltered = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.ClassFiltered, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ConstraintFiltered = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.ConstraintFiltered, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesExhausted = 0 + } else { + x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClassExhausted = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.ClassExhausted, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DimensionExhausted = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.DimensionExhausted, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QuotaExhausted = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.QuotaExhausted, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + z.F.DecMapStringFloat64X(&x.Scores, d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScoreMetaData = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocationTime = 0 + } else { + if false { + } else if yyxt47 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt47 != nil { + z.DecExtension(x.AllocationTime, yyxt47) + } else { + x.AllocationTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CoalescedFailures = 0 + } else { + x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj26-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeScoreMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringFloat64V(x.Scores, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Scores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) + } + r.WriteMapElemValue() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringFloat64V(x.Scores, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.NormScore)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NormScore\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NormScore`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.NormScore)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeScoreMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeScoreMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Scores": + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + z.F.DecMapStringFloat64X(&x.Scores, d) + } + } + case "NormScore": + if r.TryDecodeAsNil() { + x.NormScore = 0 + } else { + x.NormScore = (float64)(r.DecodeFloat64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeScoreMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + z.F.DecMapStringFloat64X(&x.Scores, d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NormScore = 0 + } else { + x.NormScore = (float64)(r.DecodeFloat64()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocDeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Healthy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Healthy == nil { + r.EncodeNil() + } else { + yy4 := *x.Healthy + if false { + } else { + r.EncodeBool(bool(yy4)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Healthy == nil { + r.EncodeNil() + } else { + yy6 := *x.Healthy + if false { + } else { + r.EncodeBool(bool(yy6)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { + z.EncExtension(x.Timestamp, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt10 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt10 != nil { + z.EncExtension(x.Timestamp, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Canary)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocDeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocDeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Healthy": + if r.TryDecodeAsNil() { + if true && x.Healthy != nil { + x.Healthy = nil + } + } else { + if x.Healthy == nil { + x.Healthy = new(bool) + } + + if false { + } else { + *x.Healthy = (bool)(r.DecodeBool()) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt7 != nil { + z.DecExtension(x.Timestamp, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = false + } else { + x.Canary = (bool)(r.DecodeBool()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocDeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Healthy != nil { + x.Healthy = nil + } + } else { + if x.Healthy == nil { + x.Healthy = new(bool) + } + + if false { + } else { + *x.Healthy = (bool)(r.DecodeBool()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { + z.DecExtension(x.Timestamp, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = false + } else { + x.Canary = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *Evaluation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [29]bool{ // should field at this index be written? + x.ID != "", // ID + x.Namespace != "", // Namespace + x.Priority != 0, // Priority + x.Type != "", // Type + x.TriggeredBy != "", // TriggeredBy + x.JobID != "", // JobID + x.JobModifyIndex != 0, // JobModifyIndex + x.NodeID != "", // NodeID + x.NodeModifyIndex != 0, // NodeModifyIndex + x.DeploymentID != "", // DeploymentID + x.Status != "", // Status + x.StatusDescription != "", // StatusDescription + x.Wait != 0, // Wait + !(x.WaitUntil.IsZero()), // WaitUntil + x.NextEval != "", // NextEval + x.PreviousEval != "", // PreviousEval + x.BlockedEval != "", // BlockedEval + len(x.FailedTGAllocs) != 0, // FailedTGAllocs + len(x.ClassEligibility) != 0, // ClassEligibility + x.QuotaLimitReached != "", // QuotaLimitReached + x.EscapedComputedClass, // EscapedComputedClass + x.AnnotatePlan, // AnnotatePlan + len(x.QueuedAllocations) != 0, // QueuedAllocations + x.LeaderACL != "", // LeaderACL + x.SnapshotIndex != 0, // SnapshotIndex + x.CreateIndex != 0, // CreateIndex + x.ModifyIndex != 0, // ModifyIndex + x.CreateTime != 0, // CreateTime + x.ModifyTime != 0, // ModifyTime + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(29) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TriggeredBy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TriggeredBy`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[7] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[9] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[10] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[12] { + if false { + } else if yyxt40 := z.Extension(z.I2Rtid(x.Wait)); yyxt40 != nil { + z.EncExtension(x.Wait, yyxt40) + } else { + r.EncodeInt(int64(x.Wait)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[12] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Wait\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Wait`) + } + r.WriteMapElemValue() + if false { + } else if yyxt41 := z.Extension(z.I2Rtid(x.Wait)); yyxt41 != nil { + z.EncExtension(x.Wait, yyxt41) + } else { + r.EncodeInt(int64(x.Wait)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[13] { + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.WaitUntil) + } else if yyxt43 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt43 != nil { + z.EncExtension(x.WaitUntil, yyxt43) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.WaitUntil) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.WaitUntil) + } else { + z.EncFallback(x.WaitUntil) + } + } else { + r.EncodeNil() + } + } else { + if yyq2[13] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WaitUntil\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WaitUntil`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.WaitUntil) + } else if yyxt44 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt44 != nil { + z.EncExtension(x.WaitUntil, yyxt44) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.WaitUntil) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.WaitUntil) + } else { + z.EncFallback(x.WaitUntil) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[14] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[14] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[15] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[15] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[16] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[16] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BlockedEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BlockedEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[17] { + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[17] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailedTGAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) + } + r.WriteMapElemValue() + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[18] { + if x.ClassEligibility == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringBoolV(x.ClassEligibility, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[18] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClassEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClassEligibility`) + } + r.WriteMapElemValue() + if x.ClassEligibility == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringBoolV(x.ClassEligibility, e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[19] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[19] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"QuotaLimitReached\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaLimitReached`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[20] { + if false { + } else { + r.EncodeBool(bool(x.EscapedComputedClass)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[20] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EscapedComputedClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EscapedComputedClass`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EscapedComputedClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[21] { + if false { + } else { + r.EncodeBool(bool(x.AnnotatePlan)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[21] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AnnotatePlan\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AnnotatePlan`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AnnotatePlan)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[22] { + if x.QueuedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.QueuedAllocations, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[22] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"QueuedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `QueuedAllocations`) + } + r.WriteMapElemValue() + if x.QueuedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.QueuedAllocations, e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[23] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[23] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LeaderACL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderACL`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[24] { + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[24] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[25] { + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[25] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[26] { + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[26] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[27] { + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[27] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[28] { + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[28] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Evaluation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Evaluation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "TriggeredBy": + if r.TryDecodeAsNil() { + x.TriggeredBy = "" + } else { + x.TriggeredBy = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "Wait": + if r.TryDecodeAsNil() { + x.Wait = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Wait)); yyxt17 != nil { + z.DecExtension(x.Wait, yyxt17) + } else { + x.Wait = (time.Duration)(r.DecodeInt64()) + } + } + case "WaitUntil": + if r.TryDecodeAsNil() { + x.WaitUntil = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.WaitUntil = r.DecodeTime() + } else if yyxt19 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt19 != nil { + z.DecExtension(x.WaitUntil, yyxt19) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.WaitUntil) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.WaitUntil) + } else { + z.DecFallback(&x.WaitUntil, false) + } + } + case "NextEval": + if r.TryDecodeAsNil() { + x.NextEval = "" + } else { + x.NextEval = (string)(r.DecodeString()) + } + case "PreviousEval": + if r.TryDecodeAsNil() { + x.PreviousEval = "" + } else { + x.PreviousEval = (string)(r.DecodeString()) + } + case "BlockedEval": + if r.TryDecodeAsNil() { + x.BlockedEval = "" + } else { + x.BlockedEval = (string)(r.DecodeString()) + } + case "FailedTGAllocs": + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + case "ClassEligibility": + if r.TryDecodeAsNil() { + x.ClassEligibility = nil + } else { + if false { + } else { + z.F.DecMapStringBoolX(&x.ClassEligibility, d) + } + } + case "QuotaLimitReached": + if r.TryDecodeAsNil() { + x.QuotaLimitReached = "" + } else { + x.QuotaLimitReached = (string)(r.DecodeString()) + } + case "EscapedComputedClass": + if r.TryDecodeAsNil() { + x.EscapedComputedClass = false + } else { + x.EscapedComputedClass = (bool)(r.DecodeBool()) + } + case "AnnotatePlan": + if r.TryDecodeAsNil() { + x.AnnotatePlan = false + } else { + x.AnnotatePlan = (bool)(r.DecodeBool()) + } + case "QueuedAllocations": + if r.TryDecodeAsNil() { + x.QueuedAllocations = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.QueuedAllocations, d) + } + } + case "LeaderACL": + if r.TryDecodeAsNil() { + x.LeaderACL = "" + } else { + x.LeaderACL = (string)(r.DecodeString()) + } + case "SnapshotIndex": + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Evaluation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj38 int + var yyb38 bool + var yyhl38 bool = l >= 0 + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TriggeredBy = "" + } else { + x.TriggeredBy = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Wait = 0 + } else { + if false { + } else if yyxt52 := z.Extension(z.I2Rtid(x.Wait)); yyxt52 != nil { + z.DecExtension(x.Wait, yyxt52) + } else { + x.Wait = (time.Duration)(r.DecodeInt64()) + } + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WaitUntil = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.WaitUntil = r.DecodeTime() + } else if yyxt54 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt54 != nil { + z.DecExtension(x.WaitUntil, yyxt54) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.WaitUntil) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.WaitUntil) + } else { + z.DecFallback(&x.WaitUntil, false) + } + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextEval = "" + } else { + x.NextEval = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousEval = "" + } else { + x.PreviousEval = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BlockedEval = "" + } else { + x.BlockedEval = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClassEligibility = nil + } else { + if false { + } else { + z.F.DecMapStringBoolX(&x.ClassEligibility, d) + } + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QuotaLimitReached = "" + } else { + x.QuotaLimitReached = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EscapedComputedClass = false + } else { + x.EscapedComputedClass = (bool)(r.DecodeBool()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AnnotatePlan = false + } else { + x.AnnotatePlan = (bool)(r.DecodeBool()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueuedAllocations = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.QueuedAllocations, d) + } + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LeaderACL = "" + } else { + x.LeaderACL = (string)(r.DecodeString()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj38++ + if yyhl38 { + yyb38 = yyj38 > l + } else { + yyb38 = r.CheckBreak() + } + if yyb38 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj38-1, "") + } + r.ReadArrayEnd() +} + +func (x *Plan) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [12]bool{ // should field at this index be written? + x.EvalID != "", // EvalID + x.EvalToken != "", // EvalToken + x.Priority != 0, // Priority + x.AllAtOnce, // AllAtOnce + x.Job != nil, // Job + len(x.NodeUpdate) != 0, // NodeUpdate + len(x.NodeAllocation) != 0, // NodeAllocation + x.Annotations != nil, // Annotations + x.Deployment != nil, // Deployment + len(x.DeploymentUpdates) != 0, // DeploymentUpdates + len(x.NodePreemptions) != 0, // NodePreemptions + x.SnapshotIndex != 0, // SnapshotIndex + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllAtOnce\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } + } + var yyn15 bool + if x.Job == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[4] { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) + } + r.WriteMapElemValue() + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) + } + r.WriteMapElemValue() + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } + } + var yyn24 bool + if x.Annotations == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[7] { + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } + } + } + var yyn27 bool + if x.Deployment == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[8] { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[9] { + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) + } + r.WriteMapElemValue() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[10] { + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePreemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) + } + r.WriteMapElemValue() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Plan) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Plan) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalToken": + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "AllAtOnce": + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "NodeUpdate": + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + case "NodeAllocation": + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + case "Annotations": + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "DeploymentUpdates": + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + case "NodePreemptions": + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + case "SnapshotIndex": + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Plan) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanResult) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) + } + r.WriteMapElemValue() + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) + } + r.WriteMapElemValue() + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } + var yyn9 bool + if x.Deployment == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) + } + r.WriteMapElemValue() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePreemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) + } + r.WriteMapElemValue() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.RefreshIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RefreshIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RefreshIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.RefreshIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.AllocIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.AllocIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanResult) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeUpdate": + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + case "NodeAllocation": + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "DeploymentUpdates": + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + case "NodePreemptions": + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + case "RefreshIndex": + if r.TryDecodeAsNil() { + x.RefreshIndex = 0 + } else { + x.RefreshIndex = (uint64)(r.DecodeUint64()) + } + case "AllocIndex": + if r.TryDecodeAsNil() { + x.AllocIndex = 0 + } else { + x.AllocIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RefreshIndex = 0 + } else { + x.RefreshIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocIndex = 0 + } else { + x.AllocIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanAnnotations) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DesiredTGUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTGUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTGUpdates`) + } + r.WriteMapElemValue() + if x.DesiredTGUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PreemptedAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocs`) + } + r.WriteMapElemValue() + if x.PreemptedAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanAnnotations) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanAnnotations) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DesiredTGUpdates": + if r.TryDecodeAsNil() { + x.DesiredTGUpdates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) + } + } + case "PreemptedAllocs": + if r.TryDecodeAsNil() { + x.PreemptedAllocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanAnnotations) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTGUpdates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *DesiredUpdates) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Ignore)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Ignore\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Ignore`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Ignore)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Place)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Place\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Place`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Place)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Migrate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Migrate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.InPlaceUpdate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InPlaceUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InPlaceUpdate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.InPlaceUpdate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DestructiveUpdate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestructiveUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestructiveUpdate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DestructiveUpdate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Canary)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Preemptions)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Preemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Preemptions`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Preemptions)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DesiredUpdates) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DesiredUpdates) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Ignore": + if r.TryDecodeAsNil() { + x.Ignore = 0 + } else { + x.Ignore = (uint64)(r.DecodeUint64()) + } + case "Place": + if r.TryDecodeAsNil() { + x.Place = 0 + } else { + x.Place = (uint64)(r.DecodeUint64()) + } + case "Migrate": + if r.TryDecodeAsNil() { + x.Migrate = 0 + } else { + x.Migrate = (uint64)(r.DecodeUint64()) + } + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = 0 + } else { + x.Stop = (uint64)(r.DecodeUint64()) + } + case "InPlaceUpdate": + if r.TryDecodeAsNil() { + x.InPlaceUpdate = 0 + } else { + x.InPlaceUpdate = (uint64)(r.DecodeUint64()) + } + case "DestructiveUpdate": + if r.TryDecodeAsNil() { + x.DestructiveUpdate = 0 + } else { + x.DestructiveUpdate = (uint64)(r.DecodeUint64()) + } + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (uint64)(r.DecodeUint64()) + } + case "Preemptions": + if r.TryDecodeAsNil() { + x.Preemptions = 0 + } else { + x.Preemptions = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DesiredUpdates) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Ignore = 0 + } else { + x.Ignore = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Place = 0 + } else { + x.Place = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Migrate = 0 + } else { + x.Migrate = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = 0 + } else { + x.Stop = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InPlaceUpdate = 0 + } else { + x.InPlaceUpdate = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestructiveUpdate = 0 + } else { + x.DestructiveUpdate = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Preemptions = 0 + } else { + x.Preemptions = (uint64)(r.DecodeUint64()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Messages == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Messages, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Messages\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Messages`) + } + r.WriteMapElemValue() + if x.Messages == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringStringV(x.Messages, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Keys == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.Keys, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Keys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Keys`) + } + r.WriteMapElemValue() + if x.Keys == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncMapStringIntV(x.Keys, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NumNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Messages": + if r.TryDecodeAsNil() { + x.Messages = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Messages, d) + } + } + case "Keys": + if r.TryDecodeAsNil() { + x.Keys = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.Keys, d) + } + } + case "NumNodes": + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Messages = nil + } else { + if false { + } else { + z.F.DecMapStringStringX(&x.Messages, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Keys = nil + } else { + if false { + } else { + z.F.DecMapStringIntX(&x.Keys, d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Key\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *RecoverableError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Err\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Recoverable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Recoverable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Recoverable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Recoverable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RecoverableError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RecoverableError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Err": + if r.TryDecodeAsNil() { + x.Err = "" + } else { + x.Err = (string)(r.DecodeString()) + } + case "Recoverable": + if r.TryDecodeAsNil() { + x.Recoverable = false + } else { + x.Recoverable = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RecoverableError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Err = "" + } else { + x.Err = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Recoverable = false + } else { + x.Recoverable = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *WrappedServerError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Err == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Err) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Err\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) + } + r.WriteMapElemValue() + if x.Err == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Err) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WrappedServerError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WrappedServerError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Err": + if r.TryDecodeAsNil() { + x.Err = nil + } else { + if false { + } else { + z.DecFallback(&x.Err, true) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WrappedServerError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Err = nil + } else { + if false { + } else { + z.DecFallback(&x.Err, true) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Rules\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Rules`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Rules": + if r.TryDecodeAsNil() { + x.Rules = "" + } else { + x.Rules = (string)(r.DecodeString()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Rules = "" + } else { + x.Rules = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { + z.DecExtension(x.MaxQueryTime, yyxt18) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicySetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Names, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Names, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicySetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicySetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Names, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicySetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Names, d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleACLPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Policy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Policy == nil { + r.EncodeNil() + } else { + x.Policy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Policy == nil { + r.EncodeNil() + } else { + x.Policy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleACLPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleACLPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policy": + if r.TryDecodeAsNil() { + if true && x.Policy != nil { + x.Policy = nil + } + } else { + if x.Policy == nil { + x.Policy = new(ACLPolicy) + } + + x.Policy.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleACLPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Policy != nil { + x.Policy = nil + } + } else { + if x.Policy == nil { + x.Policy = new(ACLPolicy) + } + + x.Policy.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicySetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicySetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicySetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicySetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Names, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Names, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Names, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Names, d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLToken) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Policies, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Policies, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Global\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt25 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt25 != nil { + z.EncExtension(x.CreateTime, yyxt25) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { + z.EncExtension(x.CreateTime, yyxt26) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLToken) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Policies, d) + } + } + case "Global": + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt14 != nil { + z.DecExtension(x.CreateTime, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Policies, d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt28 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt28 != nil { + z.DecExtension(x.CreateTime, yyxt28) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Policies, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.Policies, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Global\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt22 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt22 != nil { + z.EncExtension(x.CreateTime, yyxt22) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt23 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt23 != nil { + z.EncExtension(x.CreateTime, yyxt23) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Policies, d) + } + } + case "Global": + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt13 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt13 != nil { + z.DecExtension(x.CreateTime, yyxt13) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.Policies, d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { + z.DecExtension(x.CreateTime, yyxt26) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.GlobalOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GlobalOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GlobalOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.GlobalOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "GlobalOnly": + if r.TryDecodeAsNil() { + x.GlobalOnly = false + } else { + x.GlobalOnly = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GlobalOnly = false + } else { + x.GlobalOnly = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AccessorIDS == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.AccessorIDS, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorIDS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDS`) + } + r.WriteMapElemValue() + if x.AccessorIDS == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.AccessorIDS, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorIDS": + if r.TryDecodeAsNil() { + x.AccessorIDS = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.AccessorIDS, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorIDS = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.AccessorIDS, d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenSetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { + z.DecExtension(x.LastContact, yyxt15) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ResolveACLTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ResolveACLTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ResolveACLTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ResolveACLTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.DecExtension(x.MaxQueryTime, yyxt20) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ResolveACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ResolveACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ResolveACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ResolveACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.DecExtension(x.LastContact, yyxt13) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AccessorIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.AccessorIDs, e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDs`) + } + r.WriteMapElemValue() + if x.AccessorIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(x.AccessorIDs, e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorIDs": + if r.TryDecodeAsNil() { + x.AccessorIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.AccessorIDs, d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorIDs = nil + } else { + if false { + } else { + z.F.DecSliceStringX(&x.AccessorIDs, d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenBootstrapRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ResetIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResetIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ResetIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ResetIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenBootstrapRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "ResetIndex": + if r.TryDecodeAsNil() { + x.ResetIndex = 0 + } else { + x.ResetIndex = (uint64)(r.DecodeUint64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ResetIndex = 0 + } else { + x.ResetIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ClientHostVolumeConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ClientHostVolumeConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ClientHostVolumeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "ReadOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ClientHostVolumeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *VolumeRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Source\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Source`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VolumeRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VolumeRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Source": + if r.TryDecodeAsNil() { + x.Source = "" + } else { + x.Source = (string)(r.DecodeString()) + } + case "ReadOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VolumeRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Source = "" + } else { + x.Source = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Destination\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Destination`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = (string)(r.DecodeString()) + } + case "Destination": + if r.TryDecodeAsNil() { + x.Destination = "" + } else { + x.Destination = (string)(r.DecodeString()) + } + case "ReadOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Destination = "" + } else { + x.Destination = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x codecSelfer100) encBitmap(v Bitmap, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeStringBytesRaw([]byte(v)) +} + +func (x codecSelfer100) decBitmap(v *Bitmap, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + *v = r.DecodeBytes(*((*[]byte)(v)), false) +} + +func (x codecSelfer100) encMapDeviceIdTuplePtrtoDeviceAccounterInstance(v map[DeviceIdTuple]*DeviceAccounterInstance, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yy2 := &yyk1 + yy2.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapDeviceIdTuplePtrtoDeviceAccounterInstance(v *map[DeviceIdTuple]*DeviceAccounterInstance, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 56) + yyv1 = make(map[DeviceIdTuple]*DeviceAccounterInstance, yyrl1) + *v = yyv1 + } + var yymk1 DeviceIdTuple + var yymv1 *DeviceAccounterInstance + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = DeviceIdTuple{} + } else { + yymk1.CodecDecodeSelf(d) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DeviceAccounterInstance) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoFieldDiff(v []*FieldDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoFieldDiff(v *[]*FieldDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*FieldDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*FieldDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*FieldDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(FieldDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*FieldDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoObjectDiff(v []*ObjectDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoObjectDiff(v *[]*ObjectDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ObjectDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ObjectDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ObjectDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ObjectDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ObjectDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskGroupDiff(v []*TaskGroupDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskGroupDiff(v *[]*TaskGroupDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroupDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroupDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroupDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroupDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroupDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskDiff(v []*TaskDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskDiff(v *[]*TaskDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encTaskGroupDiffs(v TaskGroupDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decTaskGroupDiffs(v *TaskGroupDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroupDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroupDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroupDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroupDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroupDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encTaskDiffs(v TaskDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decTaskDiffs(v *TaskDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encObjectDiffs(v ObjectDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decObjectDiffs(v *ObjectDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ObjectDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ObjectDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ObjectDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ObjectDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ObjectDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encFieldDiffs(v FieldDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decFieldDiffs(v *FieldDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*FieldDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*FieldDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*FieldDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(FieldDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*FieldDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNetworkResource(v []*NetworkResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNetworkResource(v *[]*NetworkResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NetworkResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NetworkResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NetworkResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NetworkResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NetworkResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringBitmap(v map[string]Bitmap, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringBitmap(v *map[string]Bitmap, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string]Bitmap, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 Bitmap + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoRaftServer(v []*RaftServer, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoRaftServer(v *[]*RaftServer, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RaftServer{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RaftServer, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RaftServer, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RaftServer) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RaftServer, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(yyv1, e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]string, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + z.F.DecSliceStringX(&yymv1, d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicestring(v []string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) + } + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicestring(v *[]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []string{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]string, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) + } else { + yyrl1 = 8 + } + yyv1 = make([]string, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, "") + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = "" + } else { + yyv1[yyj1] = (string)(r.DecodeString()) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]string, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoServiceCheck(v []*ServiceCheck, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServiceCheck(v *[]*ServiceCheck, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServiceCheck{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServiceCheck, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServiceCheck, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServiceCheck) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServiceCheck, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceConsulUpstream(v []ConsulUpstream, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceConsulUpstream(v *[]ConsulUpstream, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []ConsulUpstream{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]ConsulUpstream, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) + } else { + yyrl1 = 8 + } + yyv1 = make([]ConsulUpstream, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, ConsulUpstream{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = ConsulUpstream{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]ConsulUpstream, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDrainUpdate(v map[string]*DrainUpdate, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDrainUpdate(v *map[string]*DrainUpdate, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DrainUpdate, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DrainUpdate + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DrainUpdate) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoNodeEvent(v map[string]*NodeEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoNodeEvent(v *map[string]*NodeEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*NodeEvent, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *NodeEvent + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(NodeEvent) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapContextSlicestring(v map[Context][]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yyk1.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceStringV(yyv1, e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapContextSlicestring(v *map[Context][]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[Context][]string, yyrl1) + *v = yyv1 + } + var yymk1 Context + var yymv1 []string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + z.F.DecSliceStringX(&yymv1, d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapContextbool(v map[Context]bool, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yyk1.CodecEncodeSelf(e) + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(yyv1)) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapContextbool(v *map[Context]bool, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 17) + yyv1 = make(map[Context]bool, yyrl1) + *v = yyv1 + } + var yymk1 Context + var yymv1 bool + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (bool)(r.DecodeBool()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = false + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapNamespacedIDPtrtoJobDeregisterOptions(v map[NamespacedID]*JobDeregisterOptions, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yy2 := &yyk1 + yy2.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapNamespacedIDPtrtoJobDeregisterOptions(v *map[NamespacedID]*JobDeregisterOptions, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[NamespacedID]*JobDeregisterOptions, yyrl1) + *v = yyv1 + } + var yymk1 NamespacedID + var yymv1 *JobDeregisterOptions + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = NamespacedID{} + } else { + yymk1.CodecDecodeSelf(d) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(JobDeregisterOptions) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoEvaluation(v []*Evaluation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoEvaluation(v *[]*Evaluation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Evaluation{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Evaluation, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Evaluation, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Evaluation) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Evaluation, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAllocation(v []*Allocation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocation(v *[]*Allocation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Allocation{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Allocation, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Allocation, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Allocation) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Allocation, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAllocationDiff(v []*AllocationDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocationDiff(v *[]*AllocationDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocationDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocationDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocationDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocationDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocationDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoDeploymentStatusUpdate(v []*DeploymentStatusUpdate, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoDeploymentStatusUpdate(v *[]*DeploymentStatusUpdate, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*DeploymentStatusUpdate{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*DeploymentStatusUpdate, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*DeploymentStatusUpdate, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(DeploymentStatusUpdate) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*DeploymentStatusUpdate, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDesiredTransition(v map[string]*DesiredTransition, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDesiredTransition(v *map[string]*DesiredTransition, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DesiredTransition, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DesiredTransition + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DesiredTransition) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoServerMember(v []*ServerMember, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServerMember(v *[]*ServerMember, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServerMember{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServerMember, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServerMember, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServerMember) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServerMember, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encnet_IP(v net.IP, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeStringBytesRaw([]byte(v)) +} + +func (x codecSelfer100) decnet_IP(v *net.IP, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + *v = r.DecodeBytes(*((*[]byte)(v)), false) +} + +func (x codecSelfer100) encSlicePtrtoVaultAccessor(v []*VaultAccessor, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoVaultAccessor(v *[]*VaultAccessor, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*VaultAccessor{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*VaultAccessor, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*VaultAccessor, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(VaultAccessor) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*VaultAccessor, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapNamespacedIDstring(v map[NamespacedID]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yy2 := &yyk1 + yy2.CodecEncodeSelf(e) + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapNamespacedIDstring(v *map[NamespacedID]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48) + yyv1 = make(map[NamespacedID]string, yyrl1) + *v = yyv1 + } + var yymk1 NamespacedID + var yymv1 string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = NamespacedID{} + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (string)(r.DecodeString()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = "" + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoNodeServerInfo(v []*NodeServerInfo, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeServerInfo(v *[]*NodeServerInfo, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeServerInfo{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeServerInfo, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeServerInfo, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeServerInfo) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeServerInfo, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeListStub(v []*NodeListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeListStub(v *[]*NodeListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJobListStub(v []*JobListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJobListStub(v *[]*JobListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*JobListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*JobListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*JobListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(JobListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*JobListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJob(v []*Job, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJob(v *[]*Job, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Job{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Job, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Job, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Job) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Job, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJobDiff(v []*JobDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJobDiff(v *[]*JobDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*JobDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*JobDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*JobDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(JobDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*JobDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoAllocMetric(v map[string]*AllocMetric, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoAllocMetric(v *map[string]*AllocMetric, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*AllocMetric, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *AllocMetric + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(AllocMetric) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoAllocListStub(v []*AllocListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocListStub(v *[]*AllocListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoDeployment(v []*Deployment, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoDeployment(v *[]*Deployment, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Deployment{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Deployment, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Deployment, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Deployment) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Deployment, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringSlicePtrtoNodeEvent(v map[string][]*NodeEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeEvent(([]*NodeEvent)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicePtrtoNodeEvent(v *map[string][]*NodeEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]*NodeEvent, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []*NodeEvent + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoNodeEvent(v []*NodeEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeEvent(v *[]*NodeEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDriverInfo(v map[string]*DriverInfo, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDriverInfo(v *map[string]*DriverInfo, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DriverInfo, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DriverInfo + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DriverInfo) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoClientHostVolumeConfig(v map[string]*ClientHostVolumeConfig, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoClientHostVolumeConfig(v *map[string]*ClientHostVolumeConfig, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ClientHostVolumeConfig, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ClientHostVolumeConfig + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ClientHostVolumeConfig) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encResourceDevices(v ResourceDevices, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decResourceDevices(v *ResourceDevices, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RequestedDevice{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RequestedDevice, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RequestedDevice, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RequestedDevice) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RequestedDevice, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePort(v []Port, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePort(v *[]Port, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []Port{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]Port, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) + } else { + yyrl1 = 8 + } + yyv1 = make([]Port, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, Port{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = Port{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]Port, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encNetworks(v Networks, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decNetworks(v *Networks, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NetworkResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NetworkResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NetworkResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NetworkResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NetworkResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeDeviceResource(v []*NodeDeviceResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeDeviceResource(v *[]*NodeDeviceResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeDeviceResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeDeviceResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeDeviceResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeDeviceResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeDeviceResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeDevice(v []*NodeDevice, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeDevice(v *[]*NodeDevice, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeDevice{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeDevice, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeDevice, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeDevice) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeDevice, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtostructs_Attribute(v map[string]*pkg1_structs.Attribute, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { + z.EncExtension(yyv1, yyxt3) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtostructs_Attribute(v *map[string]*pkg1_structs.Attribute, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*pkg1_structs.Attribute, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *pkg1_structs.Attribute + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(pkg1_structs.Attribute) + } + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil { + z.DecExtension(yymv1, yyxt4) + } else { + z.DecFallback(yymv1, false) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoAllocatedTaskResources(v map[string]*AllocatedTaskResources, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoAllocatedTaskResources(v *map[string]*AllocatedTaskResources, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*AllocatedTaskResources, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *AllocatedTaskResources + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(AllocatedTaskResources) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoAllocatedDeviceResource(v []*AllocatedDeviceResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocatedDeviceResource(v *[]*AllocatedDeviceResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocatedDeviceResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocatedDeviceResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocatedDeviceResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encAllocatedDevices(v AllocatedDevices, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decAllocatedDevices(v *AllocatedDevices, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocatedDeviceResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocatedDeviceResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocatedDeviceResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoConstraint(v []*Constraint, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoConstraint(v *[]*Constraint, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Constraint{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Constraint, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Constraint, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Constraint) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Constraint, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAffinity(v []*Affinity, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAffinity(v *[]*Affinity, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Affinity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Affinity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Affinity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Affinity) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Affinity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoSpread(v []*Spread, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoSpread(v *[]*Spread, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Spread{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Spread, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Spread, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Spread) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Spread, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskGroup(v []*TaskGroup, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskGroup(v *[]*TaskGroup, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroup{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroup, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroup, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroup) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroup, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringTaskGroupSummary(v map[string]TaskGroupSummary, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + yy3 := &yyv1 + yy3.CodecEncodeSelf(e) + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringTaskGroupSummary(v *map[string]TaskGroupSummary, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 64) + yyv1 = make(map[string]TaskGroupSummary, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 TaskGroupSummary + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = TaskGroupSummary{} + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = TaskGroupSummary{} + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoTask(v []*Task, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTask(v *[]*Task, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Task{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Task, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Task, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Task) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Task, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoService(v []*Service, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoService(v *[]*Service, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Service{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Service, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Service, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Service) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Service, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoVolumeRequest(v map[string]*VolumeRequest, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoVolumeRequest(v *map[string]*VolumeRequest, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*VolumeRequest, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *VolumeRequest + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(VolumeRequest) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoTemplate(v []*Template, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTemplate(v *[]*Template, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Template{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Template, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Template, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Template) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Template, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskArtifact(v []*TaskArtifact, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskArtifact(v *[]*TaskArtifact, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskArtifact{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskArtifact, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskArtifact, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskArtifact) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskArtifact, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoVolumeMount(v []*VolumeMount, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoVolumeMount(v *[]*VolumeMount, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*VolumeMount{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*VolumeMount, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*VolumeMount, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(VolumeMount) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*VolumeMount, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskEvent(v []*TaskEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskEvent(v *[]*TaskEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encConstraints(v Constraints, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decConstraints(v *Constraints, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Constraint{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Constraint, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Constraint, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Constraint) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Constraint, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoSpreadTarget(v []*SpreadTarget, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoSpreadTarget(v *[]*SpreadTarget, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*SpreadTarget{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*SpreadTarget, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*SpreadTarget, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(SpreadTarget) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*SpreadTarget, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encAffinities(v Affinities, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decAffinities(v *Affinities, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Affinity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Affinity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Affinity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Affinity) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Affinity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDeploymentState(v map[string]*DeploymentState, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDeploymentState(v *map[string]*DeploymentState, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DeploymentState, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DeploymentState + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DeploymentState) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoRescheduleEvent(v []*RescheduleEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoRescheduleEvent(v *[]*RescheduleEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RescheduleEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RescheduleEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RescheduleEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RescheduleEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RescheduleEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoResources(v map[string]*Resources, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoResources(v *map[string]*Resources, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*Resources, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *Resources + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(Resources) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoTaskState(v map[string]*TaskState, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoTaskState(v *map[string]*TaskState, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*TaskState, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *TaskState + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(TaskState) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoNodeScoreMeta(v []*NodeScoreMeta, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeScoreMeta(v *[]*NodeScoreMeta, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeScoreMeta{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeScoreMeta, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeScoreMeta, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeScoreMeta) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeScoreMeta, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringSlicePtrtoAllocation(v map[string][]*Allocation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicePtrtoAllocation(v *map[string][]*Allocation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]*Allocation, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []*Allocation + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoDesiredUpdates(v map[string]*DesiredUpdates, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDesiredUpdates(v *map[string]*DesiredUpdates, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DesiredUpdates, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DesiredUpdates + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DesiredUpdates) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLPolicyListStub(v []*ACLPolicyListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLPolicyListStub(v *[]*ACLPolicyListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLPolicyListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLPolicyListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLPolicyListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLPolicyListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLPolicyListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLPolicy(v map[string]*ACLPolicy, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLPolicy(v *map[string]*ACLPolicy, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLPolicy, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLPolicy + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLPolicy) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLPolicy(v []*ACLPolicy, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLPolicy(v *[]*ACLPolicy, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLPolicy{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLPolicy, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLPolicy, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLPolicy) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLPolicy, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLTokenListStub(v []*ACLTokenListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLTokenListStub(v *[]*ACLTokenListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLTokenListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLTokenListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLTokenListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLTokenListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLTokenListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLToken(v map[string]*ACLToken, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLToken(v *map[string]*ACLToken, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLToken, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLToken + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLToken) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLToken(v []*ACLToken, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLToken(v *[]*ACLToken, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLToken{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLToken, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLToken, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLToken) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLToken, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} diff --git a/version/version.go b/version/version.go index b62057bbc0bf..bf91251879fd 100644 --- a/version/version.go +++ b/version/version.go @@ -16,7 +16,7 @@ var ( // A pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. - VersionPrerelease = "rc1" + VersionPrerelease = "" // VersionMetadata is metadata further describing the build type. VersionMetadata = ""