// ************************************************************ // DO NOT EDIT. // THIS FILE IS AUTO-GENERATED BY codecgen. // ************************************************************ package structs import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" net "net" "reflect" "runtime" time "time" ) const ( // ----- content types ---- codecSelferC_UTF85247 = 1 codecSelferC_RAW5247 = 0 // ----- value types used ---- codecSelferValueTypeArray5247 = 10 codecSelferValueTypeMap5247 = 9 // ----- containerStateValues ---- codecSelfer_containerMapKey5247 = 2 codecSelfer_containerMapValue5247 = 3 codecSelfer_containerMapEnd5247 = 4 codecSelfer_containerArrayElem5247 = 6 codecSelfer_containerArrayEnd5247 = 7 ) var ( codecSelferBitsize5247 = uint8(reflect.TypeOf(uint(0)).Bits()) codecSelferOnlyMapOrArrayEncodeToStructErr5247 = errors.New(`only encoded map or array can be decoded into a struct`) ) type codecSelfer5247 struct{} func init() { if codec1978.GenVersion != 5 { _, file, _, _ := runtime.Caller(0) err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", 5, codec1978.GenVersion, file) panic(err) } if false { // reference the types, but skip this branch at build/run time var v0 net.IP var v1 time.Duration _, _ = v0, v1 } } func (x MessageType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeUint(uint64(x)) } } func (x *MessageType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*uint8)(x)) = uint8(r.DecodeUint(8)) } } func (x Context) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF85247, string(x)) } } func (x *Context) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *QueryOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *QueryOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *QueryOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *QueryOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *WriteRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *WriteRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *WriteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *WriteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv7 := &x.Region yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *QueryMeta) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *QueryMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *QueryMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv4 := &x.Index yym5 := z.DecBinary() _ = yym5 if false { } else { *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv6 := &x.LastContact yym7 := z.DecBinary() _ = yym7 if false { } else if z.HasExtensions() && z.DecExt(yyv6) { } else { *((*int64)(yyv6)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv8 := &x.KnownLeader yym9 := z.DecBinary() _ = yym9 if false { } else { *((*bool)(yyv8)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *QueryMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv11 := &x.Index yym12 := z.DecBinary() _ = yym12 if false { } else { *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv13 := &x.LastContact yym14 := z.DecBinary() _ = yym14 if false { } else if z.HasExtensions() && z.DecExt(yyv13) { } else { *((*int64)(yyv13)) = int64(r.DecodeInt(64)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv15 := &x.KnownLeader yym16 := z.DecBinary() _ = yym16 if false { } else { *((*bool)(yyv15)) = r.DecodeBool() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *WriteMeta) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *WriteMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *WriteMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv4 := &x.Index yym5 := z.DecBinary() _ = yym5 if false { } else { *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *WriteMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv7 := &x.Index yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Node == nil { r.EncodeNil() } else { x.Node.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Node")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Node == nil { r.EncodeNil() } else { x.Node.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Node": if r.TryDecodeAsNil() { if x.Node != nil { x.Node = nil } } else { if x.Node == nil { x.Node = new(Node) } x.Node.CodecDecodeSelf(d) } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv5 := &x.Region yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Node != nil { x.Node = nil } } else { if x.Node == nil { x.Node = new(Node) } x.Node.CodecDecodeSelf(d) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv9 := &x.Region yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj7-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv4 := &x.NodeID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv9 := &x.NodeID yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv11 := &x.Region yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeServerInfo) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RPCAdvertiseAddr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RPCAdvertiseAddr")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RPCAdvertiseAddr)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.RPCMajorVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RPCMajorVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.RPCMajorVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeInt(int64(x.RPCMinorVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RPCMinorVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeInt(int64(x.RPCMinorVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Datacenter)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Datacenter")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Datacenter)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeServerInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeServerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "RPCAdvertiseAddr": if r.TryDecodeAsNil() { x.RPCAdvertiseAddr = "" } else { yyv4 := &x.RPCAdvertiseAddr yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "RPCMajorVersion": if r.TryDecodeAsNil() { x.RPCMajorVersion = 0 } else { yyv6 := &x.RPCMajorVersion yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int32)(yyv6)) = int32(r.DecodeInt(32)) } } case "RPCMinorVersion": if r.TryDecodeAsNil() { x.RPCMinorVersion = 0 } else { yyv8 := &x.RPCMinorVersion yym9 := z.DecBinary() _ = yym9 if false { } else { *((*int32)(yyv8)) = int32(r.DecodeInt(32)) } } case "Datacenter": if r.TryDecodeAsNil() { x.Datacenter = "" } else { yyv10 := &x.Datacenter yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeServerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RPCAdvertiseAddr = "" } else { yyv13 := &x.RPCAdvertiseAddr yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RPCMajorVersion = 0 } else { yyv15 := &x.RPCMajorVersion yym16 := z.DecBinary() _ = yym16 if false { } else { *((*int32)(yyv15)) = int32(r.DecodeInt(32)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RPCMinorVersion = 0 } else { yyv17 := &x.RPCMinorVersion yym18 := z.DecBinary() _ = yym18 if false { } else { *((*int32)(yyv17)) = int32(r.DecodeInt(32)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Datacenter = "" } else { yyv19 := &x.Datacenter yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeUpdateStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeUpdateStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeUpdateStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv4 := &x.NodeID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv6 := &x.Status yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeUpdateStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv11 := &x.NodeID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv13 := &x.Status yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Drain)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Drain")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Drain)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv4 := &x.NodeID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Drain": if r.TryDecodeAsNil() { x.Drain = false } else { yyv6 := &x.Drain yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv11 := &x.NodeID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Drain = false } else { yyv13 := &x.Drain yym14 := z.DecBinary() _ = yym14 if false { } else { *((*bool)(yyv13)) = r.DecodeBool() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv4 := &x.NodeID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv9 := &x.NodeID yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv11 := &x.Region yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SecretID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SecretID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SecretID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv4 := &x.NodeID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "SecretID": if r.TryDecodeAsNil() { x.SecretID = "" } else { yyv6 := &x.SecretID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv10 := &x.MinQueryIndex yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv12 := &x.MaxQueryTime yym13 := z.DecBinary() _ = yym13 if false { } else if z.HasExtensions() && z.DecExt(yyv12) { } else { *((*int64)(yyv12)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv14 := &x.AllowStale yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv16 := &x.Prefix yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv19 := &x.NodeID yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SecretID = "" } else { yyv21 := &x.SecretID yym22 := z.DecBinary() _ = yym22 if false { } else { *((*string)(yyv21)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv23 := &x.Region yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv25 := &x.MinQueryIndex yym26 := z.DecBinary() _ = yym26 if false { } else { *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv27 := &x.MaxQueryTime yym28 := z.DecBinary() _ = yym28 if false { } else if z.HasExtensions() && z.DecExt(yyv27) { } else { *((*int64)(yyv27)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv29 := &x.AllowStale yym30 := z.DecBinary() _ = yym30 if false { } else { *((*bool)(yyv29)) = r.DecodeBool() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv31 := &x.Prefix yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } for { yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Matches == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Matches")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Matches == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Truncations == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { h.encMapContextbool((map[Context]bool)(x.Truncations), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Truncations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Truncations == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { h.encMapContextbool((map[Context]bool)(x.Truncations), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Matches": if r.TryDecodeAsNil() { x.Matches = nil } else { yyv4 := &x.Matches yym5 := z.DecBinary() _ = yym5 if false { } else { h.decMapContextSlicestring((*map[Context][]string)(yyv4), d) } } case "Truncations": if r.TryDecodeAsNil() { x.Truncations = nil } else { yyv6 := &x.Truncations yym7 := z.DecBinary() _ = yym7 if false { } else { h.decMapContextbool((*map[Context]bool)(yyv6), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv8 := &x.Index yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv10 := &x.LastContact yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv12 := &x.KnownLeader yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SearchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Matches = nil } else { yyv15 := &x.Matches yym16 := z.DecBinary() _ = yym16 if false { } else { h.decMapContextSlicestring((*map[Context][]string)(yyv15), d) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Truncations = nil } else { yyv17 := &x.Truncations yym18 := z.DecBinary() _ = yym18 if false { } else { h.decMapContextbool((*map[Context]bool)(yyv17), d) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv19 := &x.Index yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv21 := &x.LastContact yym22 := z.DecBinary() _ = yym22 if false { } else if z.HasExtensions() && z.DecExt(yyv21) { } else { *((*int64)(yyv21)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv23 := &x.KnownLeader yym24 := z.DecBinary() _ = yym24 if false { } else { *((*bool)(yyv23)) = r.DecodeBool() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) x.Context.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Context")) z.EncSendContainerState(codecSelfer_containerMapValue5247) x.Context.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv4 := &x.Prefix yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Context": if r.TryDecodeAsNil() { x.Context = "" } else { yyv6 := &x.Context yyv6.CodecDecodeSelf(d) } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv7 := &x.Region yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv9 := &x.MinQueryIndex yym10 := z.DecBinary() _ = yym10 if false { } else { *((*uint64)(yyv9)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv11 := &x.MaxQueryTime yym12 := z.DecBinary() _ = yym12 if false { } else if z.HasExtensions() && z.DecExt(yyv11) { } else { *((*int64)(yyv11)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv13 := &x.AllowStale yym14 := z.DecBinary() _ = yym14 if false { } else { *((*bool)(yyv13)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SearchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv16 := &x.Prefix yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Context = "" } else { yyv18 := &x.Context yyv18.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv21 := &x.MinQueryIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv23 := &x.MaxQueryTime yym24 := z.DecBinary() _ = yym24 if false { } else if z.HasExtensions() && z.DecExt(yyv23) { } else { *((*int64)(yyv23)) = int64(r.DecodeInt(64)) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv25 := &x.AllowStale yym26 := z.DecBinary() _ = yym26 if false { } else { *((*bool)(yyv25)) = r.DecodeBool() } } for { yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj15-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.EnforceIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EnforceIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.EnforceIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Job": if r.TryDecodeAsNil() { if 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 { yyv5 := &x.EnforceIndex yym6 := z.DecBinary() _ = yym6 if false { } else { *((*bool)(yyv5)) = r.DecodeBool() } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv7 := &x.JobModifyIndex yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv9 := &x.Region yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EnforceIndex = false } else { yyv13 := &x.EnforceIndex yym14 := z.DecBinary() _ = yym14 if false { } else { *((*bool)(yyv13)) = r.DecodeBool() } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv15 := &x.JobModifyIndex yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv17 := &x.Region yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Purge)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Purge")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Purge)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Purge": if r.TryDecodeAsNil() { x.Purge = false } else { yyv6 := &x.Purge yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv11 := &x.JobID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Purge = false } else { yyv13 := &x.Purge yym14 := z.DecBinary() _ = yym14 if false { } else { *((*bool)(yyv13)) = r.DecodeBool() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv9 := &x.JobID yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv11 := &x.Region yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.AllAllocs)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllAllocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.AllAllocs)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "AllAllocs": if r.TryDecodeAsNil() { x.AllAllocs = false } else { yyv6 := &x.AllAllocs yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv10 := &x.MinQueryIndex yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv12 := &x.MaxQueryTime yym13 := z.DecBinary() _ = yym13 if false { } else if z.HasExtensions() && z.DecExt(yyv12) { } else { *((*int64)(yyv12)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv14 := &x.AllowStale yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv16 := &x.Prefix yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv19 := &x.JobID yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllAllocs = false } else { yyv21 := &x.AllAllocs yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv23 := &x.Region yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv25 := &x.MinQueryIndex yym26 := z.DecBinary() _ = yym26 if false { } else { *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv27 := &x.MaxQueryTime yym28 := z.DecBinary() _ = yym28 if false { } else if z.HasExtensions() && z.DecExt(yyv27) { } else { *((*int64)(yyv27)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv29 := &x.AllowStale yym30 := z.DecBinary() _ = yym30 if false { } else { *((*bool)(yyv29)) = r.DecodeBool() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv31 := &x.Prefix yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } for { yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobListRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobListRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobPlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Diff)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Diff")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Diff)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobPlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobPlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Job": if r.TryDecodeAsNil() { if 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 { yyv5 := &x.Diff yym6 := z.DecBinary() _ = yym6 if false { } else { *((*bool)(yyv5)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv7 := &x.Region yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobPlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Diff = false } else { yyv11 := &x.Diff yym12 := z.DecBinary() _ = yym12 if false { } else { *((*bool)(yyv11)) = r.DecodeBool() } } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv13 := &x.Region yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj9-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobSummaryRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobSummaryRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobSummaryRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv8 := &x.MinQueryIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv10 := &x.MaxQueryTime yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv12 := &x.AllowStale yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv14 := &x.Prefix yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobSummaryRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv17 := &x.JobID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv21 := &x.MinQueryIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv23 := &x.MaxQueryTime yym24 := z.DecBinary() _ = yym24 if false { } else if z.HasExtensions() && z.DecExt(yyv23) { } else { *((*int64)(yyv23)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv25 := &x.AllowStale yym26 := z.DecBinary() _ = yym26 if false { } else { *((*bool)(yyv25)) = r.DecodeBool() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv27 := &x.Prefix yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobDispatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Payload == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeStringBytes(codecSelferC_RAW5247, []byte(x.Payload)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Payload")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Payload == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeStringBytes(codecSelferC_RAW5247, []byte(x.Payload)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Meta == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Meta")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Meta == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobDispatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobDispatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Payload": if r.TryDecodeAsNil() { x.Payload = nil } else { yyv6 := &x.Payload yym7 := z.DecBinary() _ = yym7 if false { } else { *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) } } case "Meta": if r.TryDecodeAsNil() { x.Meta = nil } else { yyv8 := &x.Meta yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecMapStringStringX(yyv8, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobDispatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv13 := &x.JobID yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Payload = nil } else { yyv15 := &x.Payload yym16 := z.DecBinary() _ = yym16 if false { } else { *yyv15 = r.DecodeBytes(*(*[]byte)(yyv15), false, false) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Meta = nil } else { yyv17 := &x.Meta yym18 := z.DecBinary() _ = yym18 if false { } else { z.F.DecMapStringStringX(yyv17, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobValidateRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobValidateRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobValidateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Job": if r.TryDecodeAsNil() { if 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.Region = "" } else { yyv5 := &x.Region yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobValidateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Job != nil { x.Job = nil } } else { if x.Job == nil { x.Job = new(Job) } x.Job.CodecDecodeSelf(d) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv9 := &x.Region yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj7-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobRevertRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.EnforcePriorVersion == nil { r.EncodeNil() } else { yy10 := *x.EnforcePriorVersion yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(yy10)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EnforcePriorVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.EnforcePriorVersion == nil { r.EncodeNil() } else { yy12 := *x.EnforcePriorVersion yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(yy12)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym15 := z.EncBinary() _ = yym15 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobRevertRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobRevertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "JobVersion": if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv6 := &x.JobVersion yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "EnforcePriorVersion": if r.TryDecodeAsNil() { if x.EnforcePriorVersion != nil { x.EnforcePriorVersion = nil } } else { if x.EnforcePriorVersion == nil { x.EnforcePriorVersion = new(uint64) } yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(x.EnforcePriorVersion)) = uint64(r.DecodeUint(64)) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobRevertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv13 := &x.JobID yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv15 := &x.JobVersion yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.EnforcePriorVersion != nil { x.EnforcePriorVersion = nil } } else { if x.EnforcePriorVersion == nil { x.EnforcePriorVersion = new(uint64) } yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(x.EnforcePriorVersion)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobStabilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeBool(bool(x.Stable)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Stable")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeBool(bool(x.Stable)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobStabilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobStabilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "JobVersion": if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv6 := &x.JobVersion yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "Stable": if r.TryDecodeAsNil() { x.Stable = false } else { yyv8 := &x.Stable yym9 := z.DecBinary() _ = yym9 if false { } else { *((*bool)(yyv8)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobStabilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv13 := &x.JobID yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv15 := &x.JobVersion yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Stable = false } else { yyv17 := &x.Stable yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobStabilityResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobStabilityResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobStabilityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv4 := &x.Index yym5 := z.DecBinary() _ = yym5 if false { } else { *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobStabilityResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv7 := &x.Index yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Evals == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Evals")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Evals == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalToken)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalToken")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalToken)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Evals": if r.TryDecodeAsNil() { x.Evals = nil } else { yyv4 := &x.Evals yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv4), d) } } case "EvalToken": if r.TryDecodeAsNil() { x.EvalToken = "" } else { yyv6 := &x.EvalToken yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Evals = nil } else { yyv11 := &x.Evals yym12 := z.DecBinary() _ = yym12 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv11), d) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalToken = "" } else { yyv13 := &x.EvalToken yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Evals == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncSliceStringV(x.Evals, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Evals")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Evals == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncSliceStringV(x.Evals, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocs == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncSliceStringV(x.Allocs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocs == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncSliceStringV(x.Allocs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Evals": if r.TryDecodeAsNil() { x.Evals = nil } else { yyv4 := &x.Evals yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } case "Allocs": if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv6 := &x.Allocs yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Evals = nil } else { yyv11 := &x.Evals yym12 := z.DecBinary() _ = yym12 if false { } else { z.F.DecSliceStringX(yyv11, false, d) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv13 := &x.Allocs yym14 := z.DecBinary() _ = yym14 if false { } else { z.F.DecSliceStringX(yyv13, false, d) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv8 := &x.MinQueryIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv10 := &x.MaxQueryTime yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv12 := &x.AllowStale yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv14 := &x.Prefix yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv17 := &x.EvalID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv21 := &x.MinQueryIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv23 := &x.MaxQueryTime yym24 := z.DecBinary() _ = yym24 if false { } else if z.HasExtensions() && z.DecExt(yyv23) { } else { *((*int64)(yyv23)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv25 := &x.AllowStale yym26 := z.DecBinary() _ = yym26 if false { } else { *((*bool)(yyv25)) = r.DecodeBool() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv27 := &x.Prefix yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalAckRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Token)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Token")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Token)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalAckRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalAckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Token": if r.TryDecodeAsNil() { x.Token = "" } else { yyv6 := &x.Token yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalAckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv11 := &x.EvalID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Token = "" } else { yyv13 := &x.Token yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalDequeueRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Schedulers == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncSliceStringV(x.Schedulers, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Schedulers")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Schedulers == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncSliceStringV(x.Schedulers, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else if z.HasExtensions() && z.EncExt(x.Timeout) { } else { r.EncodeInt(int64(x.Timeout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Timeout")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else if z.HasExtensions() && z.EncExt(x.Timeout) { } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.SchedulerVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SchedulerVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.SchedulerVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalDequeueRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalDequeueRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Schedulers": if r.TryDecodeAsNil() { x.Schedulers = nil } else { yyv4 := &x.Schedulers yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { yyv6 := &x.Timeout yym7 := z.DecBinary() _ = yym7 if false { } else if z.HasExtensions() && z.DecExt(yyv6) { } else { *((*int64)(yyv6)) = int64(r.DecodeInt(64)) } } case "SchedulerVersion": if r.TryDecodeAsNil() { x.SchedulerVersion = 0 } else { yyv8 := &x.SchedulerVersion yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint16)(yyv8)) = uint16(r.DecodeUint(16)) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalDequeueRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Schedulers = nil } else { yyv13 := &x.Schedulers yym14 := z.DecBinary() _ = yym14 if false { } else { z.F.DecSliceStringX(yyv13, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Timeout = 0 } else { yyv15 := &x.Timeout yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SchedulerVersion = 0 } else { yyv17 := &x.SchedulerVersion yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint16)(yyv17)) = uint16(r.DecodeUint(16)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Plan == nil { r.EncodeNil() } else { x.Plan.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Plan")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Plan == nil { r.EncodeNil() } else { x.Plan.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Plan": if r.TryDecodeAsNil() { if 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.Region = "" } else { yyv5 := &x.Region yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Plan != nil { x.Plan = nil } } else { if x.Plan == nil { x.Plan = new(Plan) } x.Plan.CodecDecodeSelf(d) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv9 := &x.Region yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj7-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ApplyPlanResultsRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Alloc == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Alloc")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Alloc == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) } } } var yyn6 bool if x.AllocUpdateRequest.Job == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyn6 { r.EncodeNil() } else { if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Deployment")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentUpdates == nil { r.EncodeNil() } else { yym16 := z.EncBinary() _ = yym16 if false { } else { h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentUpdates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentUpdates == nil { r.EncodeNil() } else { yym17 := z.EncBinary() _ = yym17 if false { } else { h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ApplyPlanResultsRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ApplyPlanResultsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Alloc": if r.TryDecodeAsNil() { x.Alloc = nil } else { yyv4 := &x.Alloc yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) } } case "Job": if x.AllocUpdateRequest.Job == nil { x.AllocUpdateRequest.Job = new(Job) } if r.TryDecodeAsNil() { if 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.Region = "" } else { yyv7 := &x.Region yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } case "Deployment": if r.TryDecodeAsNil() { if 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 { yyv10 := &x.DeploymentUpdates yym11 := z.DecBinary() _ = yym11 if false { } else { h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv10), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ApplyPlanResultsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Alloc = nil } else { yyv13 := &x.Alloc yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv13), d) } } if x.AllocUpdateRequest.Job == nil { x.AllocUpdateRequest.Job = new(Job) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv16 := &x.Region yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Deployment != nil { x.Deployment = nil } } else { if x.Deployment == nil { x.Deployment = new(Deployment) } x.Deployment.CodecDecodeSelf(d) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentUpdates = nil } else { yyv19 := &x.DeploymentUpdates yym20 := z.DecBinary() _ = yym20 if false { } else { h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv19), d) } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Alloc == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Alloc")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Alloc == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Alloc": if r.TryDecodeAsNil() { x.Alloc = nil } else { yyv4 := &x.Alloc yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) } } case "Job": if r.TryDecodeAsNil() { if 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.Region = "" } else { yyv7 := &x.Region yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Alloc = nil } else { yyv10 := &x.Alloc yym11 := z.DecBinary() _ = yym11 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv10), d) } } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv13 := &x.Region yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj9-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocListRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocListRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AllocID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AllocID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "AllocID": if r.TryDecodeAsNil() { x.AllocID = "" } else { yyv4 := &x.AllocID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv8 := &x.MinQueryIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv10 := &x.MaxQueryTime yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv12 := &x.AllowStale yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv14 := &x.Prefix yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocID = "" } else { yyv17 := &x.AllocID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv21 := &x.MinQueryIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv23 := &x.MaxQueryTime yym24 := z.DecBinary() _ = yym24 if false { } else if z.HasExtensions() && z.DecExt(yyv23) { } else { *((*int64)(yyv23)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv25 := &x.AllowStale yym26 := z.DecBinary() _ = yym26 if false { } else { *((*bool)(yyv25)) = r.DecodeBool() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv27 := &x.Prefix yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.AllocIDs == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncSliceStringV(x.AllocIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.AllocIDs == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncSliceStringV(x.AllocIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "AllocIDs": if r.TryDecodeAsNil() { x.AllocIDs = nil } else { yyv4 := &x.AllocIDs yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv8 := &x.MinQueryIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv10 := &x.MaxQueryTime yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv12 := &x.AllowStale yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv14 := &x.Prefix yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocsGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocIDs = nil } else { yyv17 := &x.AllocIDs yym18 := z.DecBinary() _ = yym18 if false { } else { z.F.DecSliceStringX(yyv17, false, d) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv21 := &x.MinQueryIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv23 := &x.MaxQueryTime yym24 := z.DecBinary() _ = yym24 if false { } else if z.HasExtensions() && z.DecExt(yyv23) { } else { *((*int64)(yyv23)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv25 := &x.AllowStale yym26 := z.DecBinary() _ = yym26 if false { } else { *((*bool)(yyv25)) = r.DecodeBool() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv27 := &x.Prefix yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PeriodicForceRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PeriodicForceRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PeriodicForceRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PeriodicForceRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv9 := &x.JobID yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv11 := &x.Region yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ServerMembersResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ServerName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ServerName")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ServerName)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ServerRegion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ServerRegion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ServerRegion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ServerDC)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ServerDC")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ServerDC)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Members == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Members")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Members == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ServerMembersResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ServerMembersResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ServerName": if r.TryDecodeAsNil() { x.ServerName = "" } else { yyv4 := &x.ServerName yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "ServerRegion": if r.TryDecodeAsNil() { x.ServerRegion = "" } else { yyv6 := &x.ServerRegion yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "ServerDC": if r.TryDecodeAsNil() { x.ServerDC = "" } else { yyv8 := &x.ServerDC yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Members": if r.TryDecodeAsNil() { x.Members = nil } else { yyv10 := &x.Members yym11 := z.DecBinary() _ = yym11 if false { } else { h.decSlicePtrtoServerMember((*[]*ServerMember)(yyv10), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ServerMembersResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ServerName = "" } else { yyv13 := &x.ServerName yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ServerRegion = "" } else { yyv15 := &x.ServerRegion yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ServerDC = "" } else { yyv17 := &x.ServerDC yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Members = nil } else { yyv19 := &x.Members yym20 := z.DecBinary() _ = yym20 if false { } else { h.decSlicePtrtoServerMember((*[]*ServerMember)(yyv19), d) } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ServerMember) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [11]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(11) } else { yynn2 = 11 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Addr == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else if z.HasExtensions() && z.EncExt(x.Addr) { } else if !yym7 { z.EncTextMarshal(x.Addr) } else { h.encnet_IP((net.IP)(x.Addr), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Addr")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Addr == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else if z.HasExtensions() && z.EncExt(x.Addr) { } else if !yym8 { z.EncTextMarshal(x.Addr) } else { h.encnet_IP((net.IP)(x.Addr), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Port)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Tags == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { z.F.EncMapStringStringV(x.Tags, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Tags")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Tags == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { z.F.EncMapStringStringV(x.Tags, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.ProtocolMin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ProtocolMin")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.ProtocolMin)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeUint(uint64(x.ProtocolMax)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ProtocolMax")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeUint(uint64(x.ProtocolMax)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeUint(uint64(x.ProtocolCur)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ProtocolCur")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeUint(uint64(x.ProtocolCur)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeUint(uint64(x.DelegateMin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DelegateMin")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeUint(uint64(x.DelegateMin)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeUint(uint64(x.DelegateMax)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DelegateMax")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeUint(uint64(x.DelegateMax)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeUint(uint64(x.DelegateCur)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DelegateCur")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else { r.EncodeUint(uint64(x.DelegateCur)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ServerMember) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ServerMember) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv4 := &x.Name yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Addr": if r.TryDecodeAsNil() { x.Addr = nil } else { yyv6 := &x.Addr yym7 := z.DecBinary() _ = yym7 if false { } else if z.HasExtensions() && z.DecExt(yyv6) { } else if !yym7 { z.DecTextUnmarshal(yyv6) } else { h.decnet_IP((*net.IP)(yyv6), d) } } case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { yyv8 := &x.Port yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint16)(yyv8)) = uint16(r.DecodeUint(16)) } } case "Tags": if r.TryDecodeAsNil() { x.Tags = nil } else { yyv10 := &x.Tags yym11 := z.DecBinary() _ = yym11 if false { } else { z.F.DecMapStringStringX(yyv10, false, d) } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv12 := &x.Status yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "ProtocolMin": if r.TryDecodeAsNil() { x.ProtocolMin = 0 } else { yyv14 := &x.ProtocolMin yym15 := z.DecBinary() _ = yym15 if false { } else { *((*uint8)(yyv14)) = uint8(r.DecodeUint(8)) } } case "ProtocolMax": if r.TryDecodeAsNil() { x.ProtocolMax = 0 } else { yyv16 := &x.ProtocolMax yym17 := z.DecBinary() _ = yym17 if false { } else { *((*uint8)(yyv16)) = uint8(r.DecodeUint(8)) } } case "ProtocolCur": if r.TryDecodeAsNil() { x.ProtocolCur = 0 } else { yyv18 := &x.ProtocolCur yym19 := z.DecBinary() _ = yym19 if false { } else { *((*uint8)(yyv18)) = uint8(r.DecodeUint(8)) } } case "DelegateMin": if r.TryDecodeAsNil() { x.DelegateMin = 0 } else { yyv20 := &x.DelegateMin yym21 := z.DecBinary() _ = yym21 if false { } else { *((*uint8)(yyv20)) = uint8(r.DecodeUint(8)) } } case "DelegateMax": if r.TryDecodeAsNil() { x.DelegateMax = 0 } else { yyv22 := &x.DelegateMax yym23 := z.DecBinary() _ = yym23 if false { } else { *((*uint8)(yyv22)) = uint8(r.DecodeUint(8)) } } case "DelegateCur": if r.TryDecodeAsNil() { x.DelegateCur = 0 } else { yyv24 := &x.DelegateCur yym25 := z.DecBinary() _ = yym25 if false { } else { *((*uint8)(yyv24)) = uint8(r.DecodeUint(8)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ServerMember) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv27 := &x.Name yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Addr = nil } else { yyv29 := &x.Addr yym30 := z.DecBinary() _ = yym30 if false { } else if z.HasExtensions() && z.DecExt(yyv29) { } else if !yym30 { z.DecTextUnmarshal(yyv29) } else { h.decnet_IP((*net.IP)(yyv29), d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Port = 0 } else { yyv31 := &x.Port yym32 := z.DecBinary() _ = yym32 if false { } else { *((*uint16)(yyv31)) = uint16(r.DecodeUint(16)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Tags = nil } else { yyv33 := &x.Tags yym34 := z.DecBinary() _ = yym34 if false { } else { z.F.DecMapStringStringX(yyv33, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv35 := &x.Status yym36 := z.DecBinary() _ = yym36 if false { } else { *((*string)(yyv35)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ProtocolMin = 0 } else { yyv37 := &x.ProtocolMin yym38 := z.DecBinary() _ = yym38 if false { } else { *((*uint8)(yyv37)) = uint8(r.DecodeUint(8)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ProtocolMax = 0 } else { yyv39 := &x.ProtocolMax yym40 := z.DecBinary() _ = yym40 if false { } else { *((*uint8)(yyv39)) = uint8(r.DecodeUint(8)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ProtocolCur = 0 } else { yyv41 := &x.ProtocolCur yym42 := z.DecBinary() _ = yym42 if false { } else { *((*uint8)(yyv41)) = uint8(r.DecodeUint(8)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DelegateMin = 0 } else { yyv43 := &x.DelegateMin yym44 := z.DecBinary() _ = yym44 if false { } else { *((*uint8)(yyv43)) = uint8(r.DecodeUint(8)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DelegateMax = 0 } else { yyv45 := &x.DelegateMax yym46 := z.DecBinary() _ = yym46 if false { } else { *((*uint8)(yyv45)) = uint8(r.DecodeUint(8)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DelegateCur = 0 } else { yyv47 := &x.DelegateCur yym48 := z.DecBinary() _ = yym48 if false { } else { *((*uint8)(yyv47)) = uint8(r.DecodeUint(8)) } } for { yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeriveVaultTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [9]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(9) } else { yynn2 = 9 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SecretID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SecretID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SecretID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AllocID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AllocID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Tasks == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { z.F.EncSliceStringV(x.Tasks, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Tasks")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Tasks == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { z.F.EncSliceStringV(x.Tasks, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeriveVaultTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeriveVaultTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv4 := &x.NodeID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "SecretID": if r.TryDecodeAsNil() { x.SecretID = "" } else { yyv6 := &x.SecretID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "AllocID": if r.TryDecodeAsNil() { x.AllocID = "" } else { yyv8 := &x.AllocID yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Tasks": if r.TryDecodeAsNil() { x.Tasks = nil } else { yyv10 := &x.Tasks yym11 := z.DecBinary() _ = yym11 if false { } else { z.F.DecSliceStringX(yyv10, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv12 := &x.Region yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv14 := &x.MinQueryIndex yym15 := z.DecBinary() _ = yym15 if false { } else { *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv16 := &x.MaxQueryTime yym17 := z.DecBinary() _ = yym17 if false { } else if z.HasExtensions() && z.DecExt(yyv16) { } else { *((*int64)(yyv16)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv18 := &x.AllowStale yym19 := z.DecBinary() _ = yym19 if false { } else { *((*bool)(yyv18)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv20 := &x.Prefix yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeriveVaultTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj22 int var yyb22 bool var yyhl22 bool = l >= 0 yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv23 := &x.NodeID yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SecretID = "" } else { yyv25 := &x.SecretID yym26 := z.DecBinary() _ = yym26 if false { } else { *((*string)(yyv25)) = r.DecodeString() } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocID = "" } else { yyv27 := &x.AllocID yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Tasks = nil } else { yyv29 := &x.Tasks yym30 := z.DecBinary() _ = yym30 if false { } else { z.F.DecSliceStringX(yyv29, false, d) } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv31 := &x.Region yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv33 := &x.MinQueryIndex yym34 := z.DecBinary() _ = yym34 if false { } else { *((*uint64)(yyv33)) = uint64(r.DecodeUint(64)) } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv35 := &x.MaxQueryTime yym36 := z.DecBinary() _ = yym36 if false { } else if z.HasExtensions() && z.DecExt(yyv35) { } else { *((*int64)(yyv35)) = int64(r.DecodeInt(64)) } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv37 := &x.AllowStale yym38 := z.DecBinary() _ = yym38 if false { } else { *((*bool)(yyv37)) = r.DecodeBool() } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv39 := &x.Prefix yym40 := z.DecBinary() _ = yym40 if false { } else { *((*string)(yyv39)) = r.DecodeString() } } for { yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { yyb22 = r.CheckBreak() } if yyb22 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj22-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *VaultAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Accessors == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Accessors")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Accessors == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *VaultAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *VaultAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Accessors": if r.TryDecodeAsNil() { x.Accessors = nil } else { yyv4 := &x.Accessors yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(yyv4), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *VaultAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Accessors = nil } else { yyv7 := &x.Accessors yym8 := z.DecBinary() _ = yym8 if false { } else { h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(yyv7), d) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *VaultAccessor) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AllocID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AllocID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Task)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Task")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Task)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Accessor)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Accessor")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Accessor)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeInt(int64(x.CreationTTL)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreationTTL")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeInt(int64(x.CreationTTL)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *VaultAccessor) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *VaultAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "AllocID": if r.TryDecodeAsNil() { x.AllocID = "" } else { yyv4 := &x.AllocID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Task": if r.TryDecodeAsNil() { x.Task = "" } else { yyv6 := &x.Task yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv8 := &x.NodeID yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Accessor": if r.TryDecodeAsNil() { x.Accessor = "" } else { yyv10 := &x.Accessor yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "CreationTTL": if r.TryDecodeAsNil() { x.CreationTTL = 0 } else { yyv12 := &x.CreationTTL yym13 := z.DecBinary() _ = yym13 if false { } else { *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv14 := &x.CreateIndex yym15 := z.DecBinary() _ = yym15 if false { } else { *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *VaultAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocID = "" } else { yyv17 := &x.AllocID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Task = "" } else { yyv19 := &x.Task yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv21 := &x.NodeID yym22 := z.DecBinary() _ = yym22 if false { } else { *((*string)(yyv21)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Accessor = "" } else { yyv23 := &x.Accessor yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreationTTL = 0 } else { yyv25 := &x.CreationTTL yym26 := z.DecBinary() _ = yym26 if false { } else { *((*int)(yyv25)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv27 := &x.CreateIndex yym28 := z.DecBinary() _ = yym28 if false { } else { *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeriveVaultTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Tasks == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncMapStringStringV(x.Tasks, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Tasks")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Tasks == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncMapStringStringV(x.Tasks, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Error == nil { r.EncodeNil() } else { x.Error.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Error")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Error == nil { r.EncodeNil() } else { x.Error.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeriveVaultTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeriveVaultTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Tasks": if r.TryDecodeAsNil() { x.Tasks = nil } else { yyv4 := &x.Tasks yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecMapStringStringX(yyv4, false, d) } } case "Error": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv7 := &x.Index yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv9 := &x.LastContact yym10 := z.DecBinary() _ = yym10 if false { } else if z.HasExtensions() && z.DecExt(yyv9) { } else { *((*int64)(yyv9)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv11 := &x.KnownLeader yym12 := z.DecBinary() _ = yym12 if false { } else { *((*bool)(yyv11)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeriveVaultTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Tasks = nil } else { yyv14 := &x.Tasks yym15 := z.DecBinary() _ = yym15 if false { } else { z.F.DecMapStringStringX(yyv14, false, d) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Error != nil { x.Error = nil } } else { if x.Error == nil { x.Error = new(RecoverableError) } x.Error.CodecDecodeSelf(d) } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv17 := &x.Index yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv19 := &x.LastContact yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv21 := &x.KnownLeader yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj13-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *GenericRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *GenericRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *GenericRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *GenericRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentListRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentListRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv4 := &x.Region yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv6 := &x.MinQueryIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv8 := &x.MaxQueryTime yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv10 := &x.AllowStale yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv12 := &x.Prefix yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv17 := &x.MinQueryIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv19 := &x.MaxQueryTime yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv21 := &x.AllowStale yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv23 := &x.Prefix yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Deployments == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncSliceStringV(x.Deployments, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Deployments")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Deployments == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncSliceStringV(x.Deployments, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Deployments": if r.TryDecodeAsNil() { x.Deployments = nil } else { yyv4 := &x.Deployments yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Deployments = nil } else { yyv9 := &x.Deployments yym10 := z.DecBinary() _ = yym10 if false { } else { z.F.DecSliceStringX(yyv9, false, d) } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv11 := &x.Region yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentStatusUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Eval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentUpdate == nil { r.EncodeNil() } else { x.DeploymentUpdate.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentUpdate == nil { r.EncodeNil() } else { x.DeploymentUpdate.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentStatusUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Eval": if r.TryDecodeAsNil() { if 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 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 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 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj7-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.HealthyAllocationIDs == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HealthyAllocationIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.HealthyAllocationIDs == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.UnhealthyAllocationIDs == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("UnhealthyAllocationIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.UnhealthyAllocationIDs == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "HealthyAllocationIDs": if r.TryDecodeAsNil() { x.HealthyAllocationIDs = nil } else { yyv6 := &x.HealthyAllocationIDs yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } case "UnhealthyAllocationIDs": if r.TryDecodeAsNil() { x.UnhealthyAllocationIDs = nil } else { yyv8 := &x.UnhealthyAllocationIDs yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv13 := &x.DeploymentID yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HealthyAllocationIDs = nil } else { yyv15 := &x.HealthyAllocationIDs yym16 := z.DecBinary() _ = yym16 if false { } else { z.F.DecSliceStringX(yyv15, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.UnhealthyAllocationIDs = nil } else { yyv17 := &x.UnhealthyAllocationIDs yym18 := z.DecBinary() _ = yym18 if false { } else { z.F.DecSliceStringX(yyv17, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ApplyDeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.HealthyAllocationIDs == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HealthyAllocationIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.HealthyAllocationIDs == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.UnhealthyAllocationIDs == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("UnhealthyAllocationIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.UnhealthyAllocationIDs == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentUpdate == nil { r.EncodeNil() } else { x.DeploymentUpdate.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentUpdate == nil { r.EncodeNil() } else { x.DeploymentUpdate.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Eval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ApplyDeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "HealthyAllocationIDs": if r.TryDecodeAsNil() { x.HealthyAllocationIDs = nil } else { yyv6 := &x.HealthyAllocationIDs yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } case "UnhealthyAllocationIDs": if r.TryDecodeAsNil() { x.UnhealthyAllocationIDs = nil } else { yyv8 := &x.UnhealthyAllocationIDs yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "DeploymentUpdate": if r.TryDecodeAsNil() { if 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 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 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 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv16 := &x.DeploymentID yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HealthyAllocationIDs = nil } else { yyv18 := &x.HealthyAllocationIDs yym19 := z.DecBinary() _ = yym19 if false { } else { z.F.DecSliceStringX(yyv18, false, d) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.UnhealthyAllocationIDs = nil } else { yyv20 := &x.UnhealthyAllocationIDs yym21 := z.DecBinary() _ = yym21 if false { } else { z.F.DecSliceStringX(yyv20, false, d) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv22 := &x.Region yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.DeploymentUpdate != nil { x.DeploymentUpdate = nil } } else { if x.DeploymentUpdate == nil { x.DeploymentUpdate = new(DeploymentStatusUpdate) } x.DeploymentUpdate.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Job != nil { x.Job = nil } } else { if x.Job == nil { x.Job = new(Job) } x.Job.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Eval != nil { x.Eval = nil } } else { if x.Eval == nil { x.Eval = new(Evaluation) } x.Eval.CodecDecodeSelf(d) } for { yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj15-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.All)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("All")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.All)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Groups == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Groups")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Groups == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "All": if r.TryDecodeAsNil() { x.All = false } else { yyv6 := &x.All yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Groups": if r.TryDecodeAsNil() { x.Groups = nil } else { yyv8 := &x.Groups yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv13 := &x.DeploymentID yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.All = false } else { yyv15 := &x.All yym16 := z.DecBinary() _ = yym16 if false { } else { *((*bool)(yyv15)) = r.DecodeBool() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Groups = nil } else { yyv17 := &x.Groups yym18 := z.DecBinary() _ = yym18 if false { } else { z.F.DecSliceStringX(yyv17, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ApplyDeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.All)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("All")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.All)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Groups == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Groups")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Groups == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Eval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ApplyDeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "All": if r.TryDecodeAsNil() { x.All = false } else { yyv6 := &x.All yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Groups": if r.TryDecodeAsNil() { x.Groups = nil } else { yyv8 := &x.Groups yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv10 := &x.Region yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "Eval": if r.TryDecodeAsNil() { if 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 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv14 := &x.DeploymentID yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.All = false } else { yyv16 := &x.All yym17 := z.DecBinary() _ = yym17 if false { } else { *((*bool)(yyv16)) = r.DecodeBool() } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Groups = nil } else { yyv18 := &x.Groups yym19 := z.DecBinary() _ = yym19 if false { } else { z.F.DecSliceStringX(yyv18, false, d) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv20 := &x.Region yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj13-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Pause)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Pause")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Pause)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Pause": if r.TryDecodeAsNil() { x.Pause = false } else { yyv6 := &x.Pause yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentPauseRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv11 := &x.DeploymentID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Pause = false } else { yyv13 := &x.Pause yym14 := z.DecBinary() _ = yym14 if false { } else { *((*bool)(yyv13)) = r.DecodeBool() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv15 := &x.Region yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv8 := &x.MinQueryIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv10 := &x.MaxQueryTime yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv12 := &x.AllowStale yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv14 := &x.Prefix yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv17 := &x.DeploymentID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv19 := &x.Region yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv21 := &x.MinQueryIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv23 := &x.MaxQueryTime yym24 := z.DecBinary() _ = yym24 if false { } else if z.HasExtensions() && z.DecExt(yyv23) { } else { *((*int64)(yyv23)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv25 := &x.AllowStale yym26 := z.DecBinary() _ = yym26 if false { } else { *((*bool)(yyv25)) = r.DecodeBool() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv27 := &x.Prefix yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentFailRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentFailRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentFailRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentFailRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv9 := &x.DeploymentID yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv11 := &x.Region yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SingleDeploymentResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Deployment")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SingleDeploymentResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SingleDeploymentResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Deployment": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv7 := &x.LastContact yym8 := z.DecBinary() _ = yym8 if false { } else if z.HasExtensions() && z.DecExt(yyv7) { } else { *((*int64)(yyv7)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv9 := &x.KnownLeader yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(yyv9)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SingleDeploymentResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Deployment != nil { x.Deployment = nil } } else { if x.Deployment == nil { x.Deployment = new(Deployment) } x.Deployment.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv13 := &x.Index yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv15 := &x.LastContact yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv17 := &x.KnownLeader yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *GenericResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *GenericResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *GenericResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv4 := &x.Index yym5 := z.DecBinary() _ = yym5 if false { } else { *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *GenericResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv7 := &x.Index yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *VersionResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Build)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Build")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Build)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Versions == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncMapStringIntV(x.Versions, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Versions")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Versions == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncMapStringIntV(x.Versions, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *VersionResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *VersionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Build": if r.TryDecodeAsNil() { x.Build = "" } else { yyv4 := &x.Build yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Versions": if r.TryDecodeAsNil() { x.Versions = nil } else { yyv6 := &x.Versions yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecMapStringIntX(yyv6, false, d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv8 := &x.Index yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv10 := &x.LastContact yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv12 := &x.KnownLeader yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *VersionResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Build = "" } else { yyv15 := &x.Build yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Versions = nil } else { yyv17 := &x.Versions yym18 := z.DecBinary() _ = yym18 if false { } else { z.F.DecMapStringIntX(yyv17, false, d) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv19 := &x.Index yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv21 := &x.LastContact yym22 := z.DecBinary() _ = yym22 if false { } else if z.HasExtensions() && z.DecExt(yyv21) { } else { *((*int64)(yyv21)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv23 := &x.KnownLeader yym24 := z.DecBinary() _ = yym24 if false { } else { *((*bool)(yyv23)) = r.DecodeBool() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Warnings)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Warnings")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Warnings)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv6 := &x.EvalCreateIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv8 := &x.JobModifyIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "Warnings": if r.TryDecodeAsNil() { x.Warnings = "" } else { yyv10 := &x.Warnings yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv12 := &x.Index yym13 := z.DecBinary() _ = yym13 if false { } else { *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv14 := &x.LastContact yym15 := z.DecBinary() _ = yym15 if false { } else if z.HasExtensions() && z.DecExt(yyv14) { } else { *((*int64)(yyv14)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv16 := &x.KnownLeader yym17 := z.DecBinary() _ = yym17 if false { } else { *((*bool)(yyv16)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv19 := &x.EvalID yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv21 := &x.EvalCreateIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv23 := &x.JobModifyIndex yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Warnings = "" } else { yyv25 := &x.Warnings yym26 := z.DecBinary() _ = yym26 if false { } else { *((*string)(yyv25)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv27 := &x.Index yym28 := z.DecBinary() _ = yym28 if false { } else { *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv29 := &x.LastContact yym30 := z.DecBinary() _ = yym30 if false { } else if z.HasExtensions() && z.DecExt(yyv29) { } else { *((*int64)(yyv29)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv31 := &x.KnownLeader yym32 := z.DecBinary() _ = yym32 if false { } else { *((*bool)(yyv31)) = r.DecodeBool() } } for { yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv6 := &x.EvalCreateIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv8 := &x.JobModifyIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv10 := &x.Index yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv12 := &x.LastContact yym13 := z.DecBinary() _ = yym13 if false { } else if z.HasExtensions() && z.DecExt(yyv12) { } else { *((*int64)(yyv12)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv14 := &x.KnownLeader yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv17 := &x.EvalID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv19 := &x.EvalCreateIndex yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv21 := &x.JobModifyIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv23 := &x.Index yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv25 := &x.LastContact yym26 := z.DecBinary() _ = yym26 if false { } else if z.HasExtensions() && z.DecExt(yyv25) { } else { *((*int64)(yyv25)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv27 := &x.KnownLeader yym28 := z.DecBinary() _ = yym28 if false { } else { *((*bool)(yyv27)) = r.DecodeBool() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobValidateResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeBool(bool(x.DriverConfigValidated)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DriverConfigValidated")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeBool(bool(x.DriverConfigValidated)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ValidationErrors == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncSliceStringV(x.ValidationErrors, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ValidationErrors")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ValidationErrors == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncSliceStringV(x.ValidationErrors, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Error)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Error")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Error)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Warnings)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Warnings")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Warnings)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobValidateResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobValidateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DriverConfigValidated": if r.TryDecodeAsNil() { x.DriverConfigValidated = false } else { yyv4 := &x.DriverConfigValidated yym5 := z.DecBinary() _ = yym5 if false { } else { *((*bool)(yyv4)) = r.DecodeBool() } } case "ValidationErrors": if r.TryDecodeAsNil() { x.ValidationErrors = nil } else { yyv6 := &x.ValidationErrors yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } case "Error": if r.TryDecodeAsNil() { x.Error = "" } else { yyv8 := &x.Error yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Warnings": if r.TryDecodeAsNil() { x.Warnings = "" } else { yyv10 := &x.Warnings yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobValidateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DriverConfigValidated = false } else { yyv13 := &x.DriverConfigValidated yym14 := z.DecBinary() _ = yym14 if false { } else { *((*bool)(yyv13)) = r.DecodeBool() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ValidationErrors = nil } else { yyv15 := &x.ValidationErrors yym16 := z.DecBinary() _ = yym16 if false { } else { z.F.DecSliceStringX(yyv15, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Error = "" } else { yyv17 := &x.Error yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Warnings = "" } else { yyv19 := &x.Warnings yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [10]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(10) } else { yynn2 = 10 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else if z.HasExtensions() && z.EncExt(x.HeartbeatTTL) { } else { r.EncodeInt(int64(x.HeartbeatTTL)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HeartbeatTTL")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else if z.HasExtensions() && z.EncExt(x.HeartbeatTTL) { } else { r.EncodeInt(int64(x.HeartbeatTTL)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.EvalIDs == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncSliceStringV(x.EvalIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.EvalIDs == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncSliceStringV(x.EvalIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.NodeModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.NodeModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.LeaderRPCAddr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LeaderRPCAddr")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.LeaderRPCAddr)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeInt(int64(x.NumNodes)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NumNodes")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeInt(int64(x.NumNodes)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Servers == nil { r.EncodeNil() } else { yym22 := z.EncBinary() _ = yym22 if false { } else { h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Servers")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Servers == nil { r.EncodeNil() } else { yym23 := z.EncBinary() _ = yym23 if false { } else { h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "HeartbeatTTL": if r.TryDecodeAsNil() { x.HeartbeatTTL = 0 } else { yyv4 := &x.HeartbeatTTL yym5 := z.DecBinary() _ = yym5 if false { } else if z.HasExtensions() && z.DecExt(yyv4) { } else { *((*int64)(yyv4)) = int64(r.DecodeInt(64)) } } case "EvalIDs": if r.TryDecodeAsNil() { x.EvalIDs = nil } else { yyv6 := &x.EvalIDs yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv8 := &x.EvalCreateIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "NodeModifyIndex": if r.TryDecodeAsNil() { x.NodeModifyIndex = 0 } else { yyv10 := &x.NodeModifyIndex yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "LeaderRPCAddr": if r.TryDecodeAsNil() { x.LeaderRPCAddr = "" } else { yyv12 := &x.LeaderRPCAddr yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "NumNodes": if r.TryDecodeAsNil() { x.NumNodes = 0 } else { yyv14 := &x.NumNodes yym15 := z.DecBinary() _ = yym15 if false { } else { *((*int32)(yyv14)) = int32(r.DecodeInt(32)) } } case "Servers": if r.TryDecodeAsNil() { x.Servers = nil } else { yyv16 := &x.Servers yym17 := z.DecBinary() _ = yym17 if false { } else { h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(yyv16), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv18 := &x.Index yym19 := z.DecBinary() _ = yym19 if false { } else { *((*uint64)(yyv18)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv20 := &x.LastContact yym21 := z.DecBinary() _ = yym21 if false { } else if z.HasExtensions() && z.DecExt(yyv20) { } else { *((*int64)(yyv20)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv22 := &x.KnownLeader yym23 := z.DecBinary() _ = yym23 if false { } else { *((*bool)(yyv22)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj24 int var yyb24 bool var yyhl24 bool = l >= 0 yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HeartbeatTTL = 0 } else { yyv25 := &x.HeartbeatTTL yym26 := z.DecBinary() _ = yym26 if false { } else if z.HasExtensions() && z.DecExt(yyv25) { } else { *((*int64)(yyv25)) = int64(r.DecodeInt(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalIDs = nil } else { yyv27 := &x.EvalIDs yym28 := z.DecBinary() _ = yym28 if false { } else { z.F.DecSliceStringX(yyv27, false, d) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv29 := &x.EvalCreateIndex yym30 := z.DecBinary() _ = yym30 if false { } else { *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeModifyIndex = 0 } else { yyv31 := &x.NodeModifyIndex yym32 := z.DecBinary() _ = yym32 if false { } else { *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LeaderRPCAddr = "" } else { yyv33 := &x.LeaderRPCAddr yym34 := z.DecBinary() _ = yym34 if false { } else { *((*string)(yyv33)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NumNodes = 0 } else { yyv35 := &x.NumNodes yym36 := z.DecBinary() _ = yym36 if false { } else { *((*int32)(yyv35)) = int32(r.DecodeInt(32)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Servers = nil } else { yyv37 := &x.Servers yym38 := z.DecBinary() _ = yym38 if false { } else { h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(yyv37), d) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv39 := &x.Index yym40 := z.DecBinary() _ = yym40 if false { } else { *((*uint64)(yyv39)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv41 := &x.LastContact yym42 := z.DecBinary() _ = yym42 if false { } else if z.HasExtensions() && z.DecExt(yyv41) { } else { *((*int64)(yyv41)) = int64(r.DecodeInt(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv43 := &x.KnownLeader yym44 := z.DecBinary() _ = yym44 if false { } else { *((*bool)(yyv43)) = r.DecodeBool() } } for { yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj24-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeDrainUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.EvalIDs == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncSliceStringV(x.EvalIDs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalIDs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.EvalIDs == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncSliceStringV(x.EvalIDs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.NodeModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.NodeModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeDrainUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeDrainUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalIDs": if r.TryDecodeAsNil() { x.EvalIDs = nil } else { yyv4 := &x.EvalIDs yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv6 := &x.EvalCreateIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "NodeModifyIndex": if r.TryDecodeAsNil() { x.NodeModifyIndex = 0 } else { yyv8 := &x.NodeModifyIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv10 := &x.Index yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv12 := &x.LastContact yym13 := z.DecBinary() _ = yym13 if false { } else if z.HasExtensions() && z.DecExt(yyv12) { } else { *((*int64)(yyv12)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv14 := &x.KnownLeader yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeDrainUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalIDs = nil } else { yyv17 := &x.EvalIDs yym18 := z.DecBinary() _ = yym18 if false { } else { z.F.DecSliceStringX(yyv17, false, d) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv19 := &x.EvalCreateIndex yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeModifyIndex = 0 } else { yyv21 := &x.NodeModifyIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv23 := &x.Index yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv25 := &x.LastContact yym26 := z.DecBinary() _ = yym26 if false { } else if z.HasExtensions() && z.DecExt(yyv25) { } else { *((*int64)(yyv25)) = int64(r.DecodeInt(64)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv27 := &x.KnownLeader yym28 := z.DecBinary() _ = yym28 if false { } else { *((*bool)(yyv27)) = r.DecodeBool() } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocs == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocs == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Allocs": if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv4 := &x.Allocs yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv13 := &x.Allocs yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeClientAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocs == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncMapStringUint64V(x.Allocs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocs == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncMapStringUint64V(x.Allocs, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeClientAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeClientAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Allocs": if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv4 := &x.Allocs yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecMapStringUint64X(yyv4, false, d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeClientAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv13 := &x.Allocs yym14 := z.DecBinary() _ = yym14 if false { } else { z.F.DecMapStringUint64X(yyv13, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SingleNodeResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Node == nil { r.EncodeNil() } else { x.Node.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Node")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Node == nil { r.EncodeNil() } else { x.Node.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SingleNodeResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SingleNodeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Node": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv7 := &x.LastContact yym8 := z.DecBinary() _ = yym8 if false { } else if z.HasExtensions() && z.DecExt(yyv7) { } else { *((*int64)(yyv7)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv9 := &x.KnownLeader yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(yyv9)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SingleNodeResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Node != nil { x.Node = nil } } else { if x.Node == nil { x.Node = new(Node) } x.Node.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv13 := &x.Index yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv15 := &x.LastContact yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv17 := &x.KnownLeader yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Nodes == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Nodes")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Nodes == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Nodes": if r.TryDecodeAsNil() { x.Nodes = nil } else { yyv4 := &x.Nodes yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Nodes = nil } else { yyv13 := &x.Nodes yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SingleJobResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SingleJobResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SingleJobResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Job": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv7 := &x.LastContact yym8 := z.DecBinary() _ = yym8 if false { } else if z.HasExtensions() && z.DecExt(yyv7) { } else { *((*int64)(yyv7)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv9 := &x.KnownLeader yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(yyv9)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SingleJobResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv13 := &x.Index yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv15 := &x.LastContact yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv17 := &x.KnownLeader yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobSummaryResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.JobSummary == nil { r.EncodeNil() } else { x.JobSummary.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobSummary")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.JobSummary == nil { r.EncodeNil() } else { x.JobSummary.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobSummaryResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobSummaryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobSummary": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv7 := &x.LastContact yym8 := z.DecBinary() _ = yym8 if false { } else if z.HasExtensions() && z.DecExt(yyv7) { } else { *((*int64)(yyv7)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv9 := &x.KnownLeader yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(yyv9)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobSummaryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.JobSummary != nil { x.JobSummary = nil } } else { if x.JobSummary == nil { x.JobSummary = new(JobSummary) } x.JobSummary.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv13 := &x.Index yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv15 := &x.LastContact yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv17 := &x.KnownLeader yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobDispatchResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DispatchedJobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DispatchedJobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DispatchedJobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.JobCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.JobCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobDispatchResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobDispatchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DispatchedJobID": if r.TryDecodeAsNil() { x.DispatchedJobID = "" } else { yyv4 := &x.DispatchedJobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv6 := &x.EvalID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv8 := &x.EvalCreateIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "JobCreateIndex": if r.TryDecodeAsNil() { x.JobCreateIndex = 0 } else { yyv10 := &x.JobCreateIndex yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv12 := &x.Index yym13 := z.DecBinary() _ = yym13 if false { } else { *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobDispatchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DispatchedJobID = "" } else { yyv15 := &x.DispatchedJobID yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv17 := &x.EvalID yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv19 := &x.EvalCreateIndex yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobCreateIndex = 0 } else { yyv21 := &x.JobCreateIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv23 := &x.Index yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobListResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Jobs == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Jobs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Jobs == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobListResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Jobs": if r.TryDecodeAsNil() { x.Jobs = nil } else { yyv4 := &x.Jobs yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoJobListStub((*[]*JobListStub)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Jobs = nil } else { yyv13 := &x.Jobs yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoJobListStub((*[]*JobListStub)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobVersionsRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Diffs)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Diffs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Diffs)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinQueryIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.MinQueryIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxQueryTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { } else { r.EncodeInt(int64(x.MaxQueryTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllowStale")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.AllowStale)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Prefix")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Prefix)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobVersionsRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobVersionsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Diffs": if r.TryDecodeAsNil() { x.Diffs = false } else { yyv6 := &x.Diffs yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv8 := &x.Region yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "MinQueryIndex": if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv10 := &x.MinQueryIndex yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "MaxQueryTime": if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv12 := &x.MaxQueryTime yym13 := z.DecBinary() _ = yym13 if false { } else if z.HasExtensions() && z.DecExt(yyv12) { } else { *((*int64)(yyv12)) = int64(r.DecodeInt(64)) } } case "AllowStale": if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv14 := &x.AllowStale yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "Prefix": if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv16 := &x.Prefix yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobVersionsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv19 := &x.JobID yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Diffs = false } else { yyv21 := &x.Diffs yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv23 := &x.Region yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinQueryIndex = 0 } else { yyv25 := &x.MinQueryIndex yym26 := z.DecBinary() _ = yym26 if false { } else { *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxQueryTime = 0 } else { yyv27 := &x.MaxQueryTime yym28 := z.DecBinary() _ = yym28 if false { } else if z.HasExtensions() && z.DecExt(yyv27) { } else { *((*int64)(yyv27)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllowStale = false } else { yyv29 := &x.AllowStale yym30 := z.DecBinary() _ = yym30 if false { } else { *((*bool)(yyv29)) = r.DecodeBool() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Prefix = "" } else { yyv31 := &x.Prefix yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } for { yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobVersionsResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Versions == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoJob(([]*Job)(x.Versions), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Versions")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Versions == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoJob(([]*Job)(x.Versions), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Diffs == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Diffs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Diffs == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobVersionsResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobVersionsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Versions": if r.TryDecodeAsNil() { x.Versions = nil } else { yyv4 := &x.Versions yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoJob((*[]*Job)(yyv4), d) } } case "Diffs": if r.TryDecodeAsNil() { x.Diffs = nil } else { yyv6 := &x.Diffs yym7 := z.DecBinary() _ = yym7 if false { } else { h.decSlicePtrtoJobDiff((*[]*JobDiff)(yyv6), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv8 := &x.Index yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv10 := &x.LastContact yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv12 := &x.KnownLeader yym13 := z.DecBinary() _ = yym13 if false { } else { *((*bool)(yyv12)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobVersionsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Versions = nil } else { yyv15 := &x.Versions yym16 := z.DecBinary() _ = yym16 if false { } else { h.decSlicePtrtoJob((*[]*Job)(yyv15), d) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Diffs = nil } else { yyv17 := &x.Diffs yym18 := z.DecBinary() _ = yym18 if false { } else { h.decSlicePtrtoJobDiff((*[]*JobDiff)(yyv17), d) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv19 := &x.Index yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv21 := &x.LastContact yym22 := z.DecBinary() _ = yym22 if false { } else if z.HasExtensions() && z.DecExt(yyv21) { } else { *((*int64)(yyv21)) = int64(r.DecodeInt(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv23 := &x.KnownLeader yym24 := z.DecBinary() _ = yym24 if false { } else { *((*bool)(yyv23)) = r.DecodeBool() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobPlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [8]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(8) } else { yynn2 = 8 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Annotations == nil { r.EncodeNil() } else { x.Annotations.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Annotations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Annotations == nil { r.EncodeNil() } else { x.Annotations.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.FailedTGAllocs == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("FailedTGAllocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.FailedTGAllocs == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.CreatedEvals == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreatedEvals")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.CreatedEvals == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Diff == nil { r.EncodeNil() } else { yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.Diff) { } else { z.EncFallback(x.Diff) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Diff")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Diff == nil { r.EncodeNil() } else { yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.Diff) { } else { z.EncFallback(x.Diff) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy19 := &x.NextPeriodicLaunch yym20 := z.EncBinary() _ = yym20 if false { } else if yym21 := z.TimeRtidIfBinc(); yym21 != 0 { r.EncodeBuiltin(yym21, yy19) } else if z.HasExtensions() && z.EncExt(yy19) { } else if yym20 { z.EncBinaryMarshal(yy19) } else if !yym20 && z.IsJSONHandle() { z.EncJSONMarshal(yy19) } else { z.EncFallback(yy19) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NextPeriodicLaunch")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yy22 := &x.NextPeriodicLaunch yym23 := z.EncBinary() _ = yym23 if false { } else if yym24 := z.TimeRtidIfBinc(); yym24 != 0 { r.EncodeBuiltin(yym24, yy22) } else if z.HasExtensions() && z.EncExt(yy22) { } else if yym23 { z.EncBinaryMarshal(yy22) } else if !yym23 && z.IsJSONHandle() { z.EncJSONMarshal(yy22) } else { z.EncFallback(yy22) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Warnings)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Warnings")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym27 := z.EncBinary() _ = yym27 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Warnings)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym30 := z.EncBinary() _ = yym30 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobPlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobPlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Annotations": if r.TryDecodeAsNil() { if 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 { yyv5 := &x.FailedTGAllocs yym6 := z.DecBinary() _ = yym6 if false { } else { h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv5), d) } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv7 := &x.JobModifyIndex yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } case "CreatedEvals": if r.TryDecodeAsNil() { x.CreatedEvals = nil } else { yyv9 := &x.CreatedEvals yym10 := z.DecBinary() _ = yym10 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv9), d) } } case "Diff": if r.TryDecodeAsNil() { if x.Diff != nil { x.Diff = nil } } else { if x.Diff == nil { x.Diff = new(JobDiff) } yym12 := z.DecBinary() _ = yym12 if false { } else if z.HasExtensions() && z.DecExt(x.Diff) { } else { z.DecFallback(x.Diff, false) } } case "NextPeriodicLaunch": if r.TryDecodeAsNil() { x.NextPeriodicLaunch = time.Time{} } else { yyv13 := &x.NextPeriodicLaunch yym14 := z.DecBinary() _ = yym14 if false { } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { r.DecodeBuiltin(yym15, yyv13) } else if z.HasExtensions() && z.DecExt(yyv13) { } else if yym14 { z.DecBinaryUnmarshal(yyv13) } else if !yym14 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv13) } else { z.DecFallback(yyv13, false) } } case "Warnings": if r.TryDecodeAsNil() { x.Warnings = "" } else { yyv16 := &x.Warnings yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv18 := &x.Index yym19 := z.DecBinary() _ = yym19 if false { } else { *((*uint64)(yyv18)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobPlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.FailedTGAllocs = nil } else { yyv22 := &x.FailedTGAllocs yym23 := z.DecBinary() _ = yym23 if false { } else { h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv22), d) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv24 := &x.JobModifyIndex yym25 := z.DecBinary() _ = yym25 if false { } else { *((*uint64)(yyv24)) = uint64(r.DecodeUint(64)) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreatedEvals = nil } else { yyv26 := &x.CreatedEvals yym27 := z.DecBinary() _ = yym27 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv26), d) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Diff != nil { x.Diff = nil } } else { if x.Diff == nil { x.Diff = new(JobDiff) } yym29 := z.DecBinary() _ = yym29 if false { } else if z.HasExtensions() && z.DecExt(x.Diff) { } else { z.DecFallback(x.Diff, false) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NextPeriodicLaunch = time.Time{} } else { yyv30 := &x.NextPeriodicLaunch yym31 := z.DecBinary() _ = yym31 if false { } else if yym32 := z.TimeRtidIfBinc(); yym32 != 0 { r.DecodeBuiltin(yym32, yyv30) } else if z.HasExtensions() && z.DecExt(yyv30) { } else if yym31 { z.DecBinaryUnmarshal(yyv30) } else if !yym31 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv30) } else { z.DecFallback(yyv30, false) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Warnings = "" } else { yyv33 := &x.Warnings yym34 := z.DecBinary() _ = yym34 if false { } else { *((*string)(yyv33)) = r.DecodeString() } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv35 := &x.Index yym36 := z.DecBinary() _ = yym36 if false { } else { *((*uint64)(yyv35)) = uint64(r.DecodeUint(64)) } } for { yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj20-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SingleAllocResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Alloc == nil { r.EncodeNil() } else { x.Alloc.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Alloc")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Alloc == nil { r.EncodeNil() } else { x.Alloc.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SingleAllocResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SingleAllocResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Alloc": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv7 := &x.LastContact yym8 := z.DecBinary() _ = yym8 if false { } else if z.HasExtensions() && z.DecExt(yyv7) { } else { *((*int64)(yyv7)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv9 := &x.KnownLeader yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(yyv9)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SingleAllocResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Alloc != nil { x.Alloc = nil } } else { if x.Alloc == nil { x.Alloc = new(Allocation) } x.Alloc.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv13 := &x.Index yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv15 := &x.LastContact yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv17 := &x.KnownLeader yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocs == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocs == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Allocs": if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv4 := &x.Allocs yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocsGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocs = nil } else { yyv13 := &x.Allocs yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocations == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocations == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Allocations": if r.TryDecodeAsNil() { x.Allocations = nil } else { yyv4 := &x.Allocations yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocations = nil } else { yyv13 := &x.Allocations yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobEvaluationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Evaluations == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Evaluations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Evaluations == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobEvaluationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobEvaluationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Evaluations": if r.TryDecodeAsNil() { x.Evaluations = nil } else { yyv4 := &x.Evaluations yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobEvaluationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Evaluations = nil } else { yyv13 := &x.Evaluations yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *SingleEvalResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Eval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *SingleEvalResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *SingleEvalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Eval": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv7 := &x.LastContact yym8 := z.DecBinary() _ = yym8 if false { } else if z.HasExtensions() && z.DecExt(yyv7) { } else { *((*int64)(yyv7)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv9 := &x.KnownLeader yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(yyv9)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *SingleEvalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv13 := &x.Index yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv15 := &x.LastContact yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv17 := &x.KnownLeader yym18 := z.DecBinary() _ = yym18 if false { } else { *((*bool)(yyv17)) = r.DecodeBool() } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalDequeueResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Eval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Eval == nil { r.EncodeNil() } else { x.Eval.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Token)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Token")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Token)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalDequeueResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalDequeueResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Eval": if r.TryDecodeAsNil() { if 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 { yyv5 := &x.Token yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv7 := &x.Index yym8 := z.DecBinary() _ = yym8 if false { } else { *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv9 := &x.LastContact yym10 := z.DecBinary() _ = yym10 if false { } else if z.HasExtensions() && z.DecExt(yyv9) { } else { *((*int64)(yyv9)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv11 := &x.KnownLeader yym12 := z.DecBinary() _ = yym12 if false { } else { *((*bool)(yyv11)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalDequeueResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Eval != nil { x.Eval = nil } } else { if x.Eval == nil { x.Eval = new(Evaluation) } x.Eval.CodecDecodeSelf(d) } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Token = "" } else { yyv15 := &x.Token yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv17 := &x.Index yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv19 := &x.LastContact yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv21 := &x.KnownLeader yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj13-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Result == nil { r.EncodeNil() } else { x.Result.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Result")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Result == nil { r.EncodeNil() } else { x.Result.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Result": if r.TryDecodeAsNil() { if 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.Index = 0 } else { yyv5 := &x.Index yym6 := z.DecBinary() _ = yym6 if false { } else { *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Result != nil { x.Result = nil } } else { if x.Result == nil { x.Result = new(PlanResult) } x.Result.CodecDecodeSelf(d) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv9 := &x.Index yym10 := z.DecBinary() _ = yym10 if false { } else { *((*uint64)(yyv9)) = uint64(r.DecodeUint(64)) } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj7-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocListResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocations == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocations == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocListResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Allocations": if r.TryDecodeAsNil() { x.Allocations = nil } else { yyv4 := &x.Allocations yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocations = nil } else { yyv13 := &x.Allocations yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentListResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Deployments == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Deployments")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Deployments == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentListResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Deployments": if r.TryDecodeAsNil() { x.Deployments = nil } else { yyv4 := &x.Deployments yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoDeployment((*[]*Deployment)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Deployments = nil } else { yyv13 := &x.Deployments yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoDeployment((*[]*Deployment)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Evaluations == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Evaluations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Evaluations == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Evaluations": if r.TryDecodeAsNil() { x.Evaluations = nil } else { yyv4 := &x.Evaluations yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Evaluations = nil } else { yyv13 := &x.Evaluations yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EvalAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Allocations == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Allocations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Allocations == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastContact")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.LastContact) { } else { r.EncodeInt(int64(x.LastContact)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KnownLeader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.KnownLeader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EvalAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EvalAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Allocations": if r.TryDecodeAsNil() { x.Allocations = nil } else { yyv4 := &x.Allocations yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv4), d) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv6 := &x.Index yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "LastContact": if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv8 := &x.LastContact yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "KnownLeader": if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv10 := &x.KnownLeader yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EvalAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Allocations = nil } else { yyv13 := &x.Allocations yym14 := z.DecBinary() _ = yym14 if false { } else { h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv13), d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastContact = 0 } else { yyv17 := &x.LastContact yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KnownLeader = false } else { yyv19 := &x.KnownLeader yym20 := z.DecBinary() _ = yym20 if false { } else { *((*bool)(yyv19)) = r.DecodeBool() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PeriodicForceResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PeriodicForceResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PeriodicForceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv6 := &x.EvalCreateIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv8 := &x.Index yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PeriodicForceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv11 := &x.EvalID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv13 := &x.EvalCreateIndex yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv15 := &x.Index yym16 := z.DecBinary() _ = yym16 if false { } else { *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.EvalCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.DeploymentModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.DeploymentModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.RevertedJobVersion == nil { r.EncodeNil() } else { yy13 := *x.RevertedJobVersion yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(yy13)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RevertedJobVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.RevertedJobVersion == nil { r.EncodeNil() } else { yy15 := *x.RevertedJobVersion yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(yy15)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym18 := z.EncBinary() _ = yym18 if false { } else { r.EncodeUint(uint64(x.Index)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Index")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.Index)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalCreateIndex": if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv6 := &x.EvalCreateIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "DeploymentModifyIndex": if r.TryDecodeAsNil() { x.DeploymentModifyIndex = 0 } else { yyv8 := &x.DeploymentModifyIndex yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "RevertedJobVersion": if r.TryDecodeAsNil() { if x.RevertedJobVersion != nil { x.RevertedJobVersion = nil } } else { if x.RevertedJobVersion == nil { x.RevertedJobVersion = new(uint64) } yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(x.RevertedJobVersion)) = uint64(r.DecodeUint(64)) } } case "Index": if r.TryDecodeAsNil() { x.Index = 0 } else { yyv12 := &x.Index yym13 := z.DecBinary() _ = yym13 if false { } else { *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv15 := &x.EvalID yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalCreateIndex = 0 } else { yyv17 := &x.EvalCreateIndex yym18 := z.DecBinary() _ = yym18 if false { } else { *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentModifyIndex = 0 } else { yyv19 := &x.DeploymentModifyIndex yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.RevertedJobVersion != nil { x.RevertedJobVersion = nil } } else { if x.RevertedJobVersion == nil { x.RevertedJobVersion = new(uint64) } yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(x.RevertedJobVersion)) = uint64(r.DecodeUint(64)) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Index = 0 } else { yyv23 := &x.Index yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [19]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(19) } else { yynn2 = 19 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SecretID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SecretID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SecretID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Datacenter)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Datacenter")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Datacenter)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.HTTPAddr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HTTPAddr")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.HTTPAddr)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.TLSEnabled)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TLSEnabled")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.TLSEnabled)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Attributes == nil { r.EncodeNil() } else { yym22 := z.EncBinary() _ = yym22 if false { } else { z.F.EncMapStringStringV(x.Attributes, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Attributes")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Attributes == nil { r.EncodeNil() } else { yym23 := z.EncBinary() _ = yym23 if false { } else { z.F.EncMapStringStringV(x.Attributes, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Resources == nil { r.EncodeNil() } else { x.Resources.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Resources")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Resources == nil { r.EncodeNil() } else { x.Resources.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Reserved == nil { r.EncodeNil() } else { x.Reserved.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Reserved")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Reserved == nil { r.EncodeNil() } else { x.Reserved.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Links == nil { r.EncodeNil() } else { yym31 := z.EncBinary() _ = yym31 if false { } else { z.F.EncMapStringStringV(x.Links, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Links")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Links == nil { r.EncodeNil() } else { yym32 := z.EncBinary() _ = yym32 if false { } else { z.F.EncMapStringStringV(x.Links, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Meta == nil { r.EncodeNil() } else { yym34 := z.EncBinary() _ = yym34 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Meta")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Meta == nil { r.EncodeNil() } else { yym35 := z.EncBinary() _ = yym35 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym37 := z.EncBinary() _ = yym37 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeClass)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeClass")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym38 := z.EncBinary() _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeClass)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym40 := z.EncBinary() _ = yym40 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ComputedClass)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ComputedClass")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym41 := z.EncBinary() _ = yym41 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ComputedClass)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym43 := z.EncBinary() _ = yym43 if false { } else { r.EncodeBool(bool(x.Drain)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Drain")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym44 := z.EncBinary() _ = yym44 if false { } else { r.EncodeBool(bool(x.Drain)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym46 := z.EncBinary() _ = yym46 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym47 := z.EncBinary() _ = yym47 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym49 := z.EncBinary() _ = yym49 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym50 := z.EncBinary() _ = yym50 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym52 := z.EncBinary() _ = yym52 if false { } else { r.EncodeInt(int64(x.StatusUpdatedAt)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusUpdatedAt")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym53 := z.EncBinary() _ = yym53 if false { } else { r.EncodeInt(int64(x.StatusUpdatedAt)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym55 := z.EncBinary() _ = yym55 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym56 := z.EncBinary() _ = yym56 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym58 := z.EncBinary() _ = yym58 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym59 := z.EncBinary() _ = yym59 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "SecretID": if r.TryDecodeAsNil() { x.SecretID = "" } else { yyv6 := &x.SecretID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Datacenter": if r.TryDecodeAsNil() { x.Datacenter = "" } else { yyv8 := &x.Datacenter yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv10 := &x.Name yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "HTTPAddr": if r.TryDecodeAsNil() { x.HTTPAddr = "" } else { yyv12 := &x.HTTPAddr yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "TLSEnabled": if r.TryDecodeAsNil() { x.TLSEnabled = false } else { yyv14 := &x.TLSEnabled yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "Attributes": if r.TryDecodeAsNil() { x.Attributes = nil } else { yyv16 := &x.Attributes yym17 := z.DecBinary() _ = yym17 if false { } else { z.F.DecMapStringStringX(yyv16, false, d) } } case "Resources": if r.TryDecodeAsNil() { if 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 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 { yyv20 := &x.Links yym21 := z.DecBinary() _ = yym21 if false { } else { z.F.DecMapStringStringX(yyv20, false, d) } } case "Meta": if r.TryDecodeAsNil() { x.Meta = nil } else { yyv22 := &x.Meta yym23 := z.DecBinary() _ = yym23 if false { } else { z.F.DecMapStringStringX(yyv22, false, d) } } case "NodeClass": if r.TryDecodeAsNil() { x.NodeClass = "" } else { yyv24 := &x.NodeClass yym25 := z.DecBinary() _ = yym25 if false { } else { *((*string)(yyv24)) = r.DecodeString() } } case "ComputedClass": if r.TryDecodeAsNil() { x.ComputedClass = "" } else { yyv26 := &x.ComputedClass yym27 := z.DecBinary() _ = yym27 if false { } else { *((*string)(yyv26)) = r.DecodeString() } } case "Drain": if r.TryDecodeAsNil() { x.Drain = false } else { yyv28 := &x.Drain yym29 := z.DecBinary() _ = yym29 if false { } else { *((*bool)(yyv28)) = r.DecodeBool() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv30 := &x.Status yym31 := z.DecBinary() _ = yym31 if false { } else { *((*string)(yyv30)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv32 := &x.StatusDescription yym33 := z.DecBinary() _ = yym33 if false { } else { *((*string)(yyv32)) = r.DecodeString() } } case "StatusUpdatedAt": if r.TryDecodeAsNil() { x.StatusUpdatedAt = 0 } else { yyv34 := &x.StatusUpdatedAt yym35 := z.DecBinary() _ = yym35 if false { } else { *((*int64)(yyv34)) = int64(r.DecodeInt(64)) } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv36 := &x.CreateIndex yym37 := z.DecBinary() _ = yym37 if false { } else { *((*uint64)(yyv36)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv38 := &x.ModifyIndex yym39 := z.DecBinary() _ = yym39 if false { } else { *((*uint64)(yyv38)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv41 := &x.ID yym42 := z.DecBinary() _ = yym42 if false { } else { *((*string)(yyv41)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SecretID = "" } else { yyv43 := &x.SecretID yym44 := z.DecBinary() _ = yym44 if false { } else { *((*string)(yyv43)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Datacenter = "" } else { yyv45 := &x.Datacenter yym46 := z.DecBinary() _ = yym46 if false { } else { *((*string)(yyv45)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv47 := &x.Name yym48 := z.DecBinary() _ = yym48 if false { } else { *((*string)(yyv47)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HTTPAddr = "" } else { yyv49 := &x.HTTPAddr yym50 := z.DecBinary() _ = yym50 if false { } else { *((*string)(yyv49)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TLSEnabled = false } else { yyv51 := &x.TLSEnabled yym52 := z.DecBinary() _ = yym52 if false { } else { *((*bool)(yyv51)) = r.DecodeBool() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Attributes = nil } else { yyv53 := &x.Attributes yym54 := z.DecBinary() _ = yym54 if false { } else { z.F.DecMapStringStringX(yyv53, false, d) } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Reserved != nil { x.Reserved = nil } } else { if x.Reserved == nil { x.Reserved = new(Resources) } x.Reserved.CodecDecodeSelf(d) } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Links = nil } else { yyv57 := &x.Links yym58 := z.DecBinary() _ = yym58 if false { } else { z.F.DecMapStringStringX(yyv57, false, d) } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Meta = nil } else { yyv59 := &x.Meta yym60 := z.DecBinary() _ = yym60 if false { } else { z.F.DecMapStringStringX(yyv59, false, d) } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeClass = "" } else { yyv61 := &x.NodeClass yym62 := z.DecBinary() _ = yym62 if false { } else { *((*string)(yyv61)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ComputedClass = "" } else { yyv63 := &x.ComputedClass yym64 := z.DecBinary() _ = yym64 if false { } else { *((*string)(yyv63)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Drain = false } else { yyv65 := &x.Drain yym66 := z.DecBinary() _ = yym66 if false { } else { *((*bool)(yyv65)) = r.DecodeBool() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv67 := &x.Status yym68 := z.DecBinary() _ = yym68 if false { } else { *((*string)(yyv67)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv69 := &x.StatusDescription yym70 := z.DecBinary() _ = yym70 if false { } else { *((*string)(yyv69)) = r.DecodeString() } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusUpdatedAt = 0 } else { yyv71 := &x.StatusUpdatedAt yym72 := z.DecBinary() _ = yym72 if false { } else { *((*int64)(yyv71)) = int64(r.DecodeInt(64)) } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv73 := &x.CreateIndex yym74 := z.DecBinary() _ = yym74 if false { } else { *((*uint64)(yyv73)) = uint64(r.DecodeUint(64)) } } yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv75 := &x.ModifyIndex yym76 := z.DecBinary() _ = yym76 if false { } else { *((*uint64)(yyv75)) = uint64(r.DecodeUint(64)) } } for { yyj40++ if yyhl40 { yyb40 = yyj40 > l } else { yyb40 = r.CheckBreak() } if yyb40 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj40-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NodeListStub) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [10]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(10) } else { yynn2 = 10 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Datacenter)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Datacenter")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Datacenter)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeClass)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeClass")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeClass)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Version)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Version")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Version)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.Drain)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Drain")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.Drain)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NodeListStub) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NodeListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Datacenter": if r.TryDecodeAsNil() { x.Datacenter = "" } else { yyv6 := &x.Datacenter yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv8 := &x.Name yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "NodeClass": if r.TryDecodeAsNil() { x.NodeClass = "" } else { yyv10 := &x.NodeClass yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "Version": if r.TryDecodeAsNil() { x.Version = "" } else { yyv12 := &x.Version yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "Drain": if r.TryDecodeAsNil() { x.Drain = false } else { yyv14 := &x.Drain yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv16 := &x.Status yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv18 := &x.StatusDescription yym19 := z.DecBinary() _ = yym19 if false { } else { *((*string)(yyv18)) = r.DecodeString() } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv20 := &x.CreateIndex yym21 := z.DecBinary() _ = yym21 if false { } else { *((*uint64)(yyv20)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv22 := &x.ModifyIndex yym23 := z.DecBinary() _ = yym23 if false { } else { *((*uint64)(yyv22)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NodeListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj24 int var yyb24 bool var yyhl24 bool = l >= 0 yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv25 := &x.ID yym26 := z.DecBinary() _ = yym26 if false { } else { *((*string)(yyv25)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Datacenter = "" } else { yyv27 := &x.Datacenter yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv29 := &x.Name yym30 := z.DecBinary() _ = yym30 if false { } else { *((*string)(yyv29)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeClass = "" } else { yyv31 := &x.NodeClass yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Version = "" } else { yyv33 := &x.Version yym34 := z.DecBinary() _ = yym34 if false { } else { *((*string)(yyv33)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Drain = false } else { yyv35 := &x.Drain yym36 := z.DecBinary() _ = yym36 if false { } else { *((*bool)(yyv35)) = r.DecodeBool() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv37 := &x.Status yym38 := z.DecBinary() _ = yym38 if false { } else { *((*string)(yyv37)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv39 := &x.StatusDescription yym40 := z.DecBinary() _ = yym40 if false { } else { *((*string)(yyv39)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv41 := &x.CreateIndex yym42 := z.DecBinary() _ = yym42 if false { } else { *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv43 := &x.ModifyIndex yym44 := z.DecBinary() _ = yym44 if false { } else { *((*uint64)(yyv43)) = uint64(r.DecodeUint(64)) } } for { yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj24-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x Networks) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { h.encNetworks((Networks)(x), e) } } } func (x *Networks) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { h.decNetworks((*Networks)(x), d) } } func (x *Resources) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeInt(int64(x.CPU)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CPU")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeInt(int64(x.CPU)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.MemoryMB)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MemoryMB")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.MemoryMB)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeInt(int64(x.DiskMB)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DiskMB")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeInt(int64(x.DiskMB)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeInt(int64(x.IOPS)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("IOPS")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeInt(int64(x.IOPS)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Networks == nil { r.EncodeNil() } else { x.Networks.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Networks")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Networks == nil { r.EncodeNil() } else { x.Networks.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Resources) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Resources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "CPU": if r.TryDecodeAsNil() { x.CPU = 0 } else { yyv4 := &x.CPU yym5 := z.DecBinary() _ = yym5 if false { } else { *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "MemoryMB": if r.TryDecodeAsNil() { x.MemoryMB = 0 } else { yyv6 := &x.MemoryMB yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "DiskMB": if r.TryDecodeAsNil() { x.DiskMB = 0 } else { yyv8 := &x.DiskMB yym9 := z.DecBinary() _ = yym9 if false { } else { *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "IOPS": if r.TryDecodeAsNil() { x.IOPS = 0 } else { yyv10 := &x.IOPS yym11 := z.DecBinary() _ = yym11 if false { } else { *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Networks": if r.TryDecodeAsNil() { x.Networks = nil } else { yyv12 := &x.Networks yyv12.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Resources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CPU = 0 } else { yyv14 := &x.CPU yym15 := z.DecBinary() _ = yym15 if false { } else { *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MemoryMB = 0 } else { yyv16 := &x.MemoryMB yym17 := z.DecBinary() _ = yym17 if false { } else { *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DiskMB = 0 } else { yyv18 := &x.DiskMB yym19 := z.DecBinary() _ = yym19 if false { } else { *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.IOPS = 0 } else { yyv20 := &x.IOPS yym21 := z.DecBinary() _ = yym21 if false { } else { *((*int)(yyv20)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Networks = nil } else { yyv22 := &x.Networks yyv22.CodecDecodeSelf(d) } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj13-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Port) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Label)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Label")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Label)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.Value)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Value")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.Value)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Port) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Port) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Label": if r.TryDecodeAsNil() { x.Label = "" } else { yyv4 := &x.Label yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Value": if r.TryDecodeAsNil() { x.Value = 0 } else { yyv6 := &x.Value yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Port) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Label = "" } else { yyv9 := &x.Label yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Value = 0 } else { yyv11 := &x.Value yym12 := z.DecBinary() _ = yym12 if false { } else { *((*int)(yyv11)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *NetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Device)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Device")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Device)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.CIDR)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CIDR")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.CIDR)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.IP)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("IP")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.IP)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeInt(int64(x.MBits)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MBits")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeInt(int64(x.MBits)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ReservedPorts == nil { r.EncodeNil() } else { yym16 := z.EncBinary() _ = yym16 if false { } else { h.encSlicePort(([]Port)(x.ReservedPorts), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ReservedPorts")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ReservedPorts == nil { r.EncodeNil() } else { yym17 := z.EncBinary() _ = yym17 if false { } else { h.encSlicePort(([]Port)(x.ReservedPorts), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DynamicPorts == nil { r.EncodeNil() } else { yym19 := z.EncBinary() _ = yym19 if false { } else { h.encSlicePort(([]Port)(x.DynamicPorts), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DynamicPorts")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DynamicPorts == nil { r.EncodeNil() } else { yym20 := z.EncBinary() _ = yym20 if false { } else { h.encSlicePort(([]Port)(x.DynamicPorts), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *NetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *NetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Device": if r.TryDecodeAsNil() { x.Device = "" } else { yyv4 := &x.Device yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "CIDR": if r.TryDecodeAsNil() { x.CIDR = "" } else { yyv6 := &x.CIDR yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "IP": if r.TryDecodeAsNil() { x.IP = "" } else { yyv8 := &x.IP yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "MBits": if r.TryDecodeAsNil() { x.MBits = 0 } else { yyv10 := &x.MBits yym11 := z.DecBinary() _ = yym11 if false { } else { *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "ReservedPorts": if r.TryDecodeAsNil() { x.ReservedPorts = nil } else { yyv12 := &x.ReservedPorts yym13 := z.DecBinary() _ = yym13 if false { } else { h.decSlicePort((*[]Port)(yyv12), d) } } case "DynamicPorts": if r.TryDecodeAsNil() { x.DynamicPorts = nil } else { yyv14 := &x.DynamicPorts yym15 := z.DecBinary() _ = yym15 if false { } else { h.decSlicePort((*[]Port)(yyv14), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *NetworkResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Device = "" } else { yyv17 := &x.Device yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CIDR = "" } else { yyv19 := &x.CIDR yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.IP = "" } else { yyv21 := &x.IP yym22 := z.DecBinary() _ = yym22 if false { } else { *((*string)(yyv21)) = r.DecodeString() } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MBits = 0 } else { yyv23 := &x.MBits yym24 := z.DecBinary() _ = yym24 if false { } else { *((*int)(yyv23)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ReservedPorts = nil } else { yyv25 := &x.ReservedPorts yym26 := z.DecBinary() _ = yym26 if false { } else { h.decSlicePort((*[]Port)(yyv25), d) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DynamicPorts = nil } else { yyv27 := &x.DynamicPorts yym28 := z.DecBinary() _ = yym28 if false { } else { h.decSlicePort((*[]Port)(yyv27), d) } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [25]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(25) } else { yynn2 = 25 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeBool(bool(x.Stop)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Stop")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeBool(bool(x.Stop)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Region")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Region)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ParentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ParentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ParentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Type")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeInt(int64(x.Priority)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Priority")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeInt(int64(x.Priority)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeBool(bool(x.AllAtOnce)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllAtOnce")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeBool(bool(x.AllAtOnce)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Datacenters == nil { r.EncodeNil() } else { yym28 := z.EncBinary() _ = yym28 if false { } else { z.F.EncSliceStringV(x.Datacenters, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Datacenters")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Datacenters == nil { r.EncodeNil() } else { yym29 := z.EncBinary() _ = yym29 if false { } else { z.F.EncSliceStringV(x.Datacenters, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Constraints == nil { r.EncodeNil() } else { yym31 := z.EncBinary() _ = yym31 if false { } else { h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Constraints")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Constraints == nil { r.EncodeNil() } else { yym32 := z.EncBinary() _ = yym32 if false { } else { h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.TaskGroups == nil { r.EncodeNil() } else { yym34 := z.EncBinary() _ = yym34 if false { } else { h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskGroups")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.TaskGroups == nil { r.EncodeNil() } else { yym35 := z.EncBinary() _ = yym35 if false { } else { h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy37 := &x.Update yy37.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Update")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yy39 := &x.Update yy39.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Periodic == nil { r.EncodeNil() } else { x.Periodic.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Periodic")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Periodic == nil { r.EncodeNil() } else { x.Periodic.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ParameterizedJob == nil { r.EncodeNil() } else { x.ParameterizedJob.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ParameterizedJob")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ParameterizedJob == nil { r.EncodeNil() } else { x.ParameterizedJob.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Payload == nil { r.EncodeNil() } else { yym48 := z.EncBinary() _ = yym48 if false { } else { r.EncodeStringBytes(codecSelferC_RAW5247, []byte(x.Payload)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Payload")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Payload == nil { r.EncodeNil() } else { yym49 := z.EncBinary() _ = yym49 if false { } else { r.EncodeStringBytes(codecSelferC_RAW5247, []byte(x.Payload)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Meta == nil { r.EncodeNil() } else { yym51 := z.EncBinary() _ = yym51 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Meta")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Meta == nil { r.EncodeNil() } else { yym52 := z.EncBinary() _ = yym52 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym54 := z.EncBinary() _ = yym54 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.VaultToken)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("VaultToken")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym55 := z.EncBinary() _ = yym55 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.VaultToken)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym57 := z.EncBinary() _ = yym57 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym58 := z.EncBinary() _ = yym58 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym60 := z.EncBinary() _ = yym60 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym61 := z.EncBinary() _ = yym61 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym63 := z.EncBinary() _ = yym63 if false { } else { r.EncodeBool(bool(x.Stable)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Stable")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym64 := z.EncBinary() _ = yym64 if false { } else { r.EncodeBool(bool(x.Stable)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym66 := z.EncBinary() _ = yym66 if false { } else { r.EncodeUint(uint64(x.Version)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Version")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym67 := z.EncBinary() _ = yym67 if false { } else { r.EncodeUint(uint64(x.Version)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym69 := z.EncBinary() _ = yym69 if false { } else { r.EncodeInt(int64(x.SubmitTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SubmitTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym70 := z.EncBinary() _ = yym70 if false { } else { r.EncodeInt(int64(x.SubmitTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym72 := z.EncBinary() _ = yym72 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym73 := z.EncBinary() _ = yym73 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym75 := z.EncBinary() _ = yym75 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym76 := z.EncBinary() _ = yym76 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym78 := z.EncBinary() _ = yym78 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym79 := z.EncBinary() _ = yym79 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Stop": if r.TryDecodeAsNil() { x.Stop = false } else { yyv4 := &x.Stop yym5 := z.DecBinary() _ = yym5 if false { } else { *((*bool)(yyv4)) = r.DecodeBool() } } case "Region": if r.TryDecodeAsNil() { x.Region = "" } else { yyv6 := &x.Region yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv8 := &x.ID yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "ParentID": if r.TryDecodeAsNil() { x.ParentID = "" } else { yyv10 := &x.ParentID yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv12 := &x.Name yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { yyv14 := &x.Type yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } case "Priority": if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv16 := &x.Priority yym17 := z.DecBinary() _ = yym17 if false { } else { *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "AllAtOnce": if r.TryDecodeAsNil() { x.AllAtOnce = false } else { yyv18 := &x.AllAtOnce yym19 := z.DecBinary() _ = yym19 if false { } else { *((*bool)(yyv18)) = r.DecodeBool() } } case "Datacenters": if r.TryDecodeAsNil() { x.Datacenters = nil } else { yyv20 := &x.Datacenters yym21 := z.DecBinary() _ = yym21 if false { } else { z.F.DecSliceStringX(yyv20, false, d) } } case "Constraints": if r.TryDecodeAsNil() { x.Constraints = nil } else { yyv22 := &x.Constraints yym23 := z.DecBinary() _ = yym23 if false { } else { h.decSlicePtrtoConstraint((*[]*Constraint)(yyv22), d) } } case "TaskGroups": if r.TryDecodeAsNil() { x.TaskGroups = nil } else { yyv24 := &x.TaskGroups yym25 := z.DecBinary() _ = yym25 if false { } else { h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(yyv24), d) } } case "Update": if r.TryDecodeAsNil() { x.Update = UpdateStrategy{} } else { yyv26 := &x.Update yyv26.CodecDecodeSelf(d) } case "Periodic": if r.TryDecodeAsNil() { if 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 x.ParameterizedJob != nil { x.ParameterizedJob = nil } } else { if x.ParameterizedJob == nil { x.ParameterizedJob = new(ParameterizedJobConfig) } x.ParameterizedJob.CodecDecodeSelf(d) } case "Payload": if r.TryDecodeAsNil() { x.Payload = nil } else { yyv29 := &x.Payload yym30 := z.DecBinary() _ = yym30 if false { } else { *yyv29 = r.DecodeBytes(*(*[]byte)(yyv29), false, false) } } case "Meta": if r.TryDecodeAsNil() { x.Meta = nil } else { yyv31 := &x.Meta yym32 := z.DecBinary() _ = yym32 if false { } else { z.F.DecMapStringStringX(yyv31, false, d) } } case "VaultToken": if r.TryDecodeAsNil() { x.VaultToken = "" } else { yyv33 := &x.VaultToken yym34 := z.DecBinary() _ = yym34 if false { } else { *((*string)(yyv33)) = r.DecodeString() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv35 := &x.Status yym36 := z.DecBinary() _ = yym36 if false { } else { *((*string)(yyv35)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv37 := &x.StatusDescription yym38 := z.DecBinary() _ = yym38 if false { } else { *((*string)(yyv37)) = r.DecodeString() } } case "Stable": if r.TryDecodeAsNil() { x.Stable = false } else { yyv39 := &x.Stable yym40 := z.DecBinary() _ = yym40 if false { } else { *((*bool)(yyv39)) = r.DecodeBool() } } case "Version": if r.TryDecodeAsNil() { x.Version = 0 } else { yyv41 := &x.Version yym42 := z.DecBinary() _ = yym42 if false { } else { *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) } } case "SubmitTime": if r.TryDecodeAsNil() { x.SubmitTime = 0 } else { yyv43 := &x.SubmitTime yym44 := z.DecBinary() _ = yym44 if false { } else { *((*int64)(yyv43)) = int64(r.DecodeInt(64)) } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv45 := &x.CreateIndex yym46 := z.DecBinary() _ = yym46 if false { } else { *((*uint64)(yyv45)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv47 := &x.ModifyIndex yym48 := z.DecBinary() _ = yym48 if false { } else { *((*uint64)(yyv47)) = uint64(r.DecodeUint(64)) } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv49 := &x.JobModifyIndex yym50 := z.DecBinary() _ = yym50 if false { } else { *((*uint64)(yyv49)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj51 int var yyb51 bool var yyhl51 bool = l >= 0 yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Stop = false } else { yyv52 := &x.Stop yym53 := z.DecBinary() _ = yym53 if false { } else { *((*bool)(yyv52)) = r.DecodeBool() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Region = "" } else { yyv54 := &x.Region yym55 := z.DecBinary() _ = yym55 if false { } else { *((*string)(yyv54)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv56 := &x.ID yym57 := z.DecBinary() _ = yym57 if false { } else { *((*string)(yyv56)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ParentID = "" } else { yyv58 := &x.ParentID yym59 := z.DecBinary() _ = yym59 if false { } else { *((*string)(yyv58)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv60 := &x.Name yym61 := z.DecBinary() _ = yym61 if false { } else { *((*string)(yyv60)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Type = "" } else { yyv62 := &x.Type yym63 := z.DecBinary() _ = yym63 if false { } else { *((*string)(yyv62)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv64 := &x.Priority yym65 := z.DecBinary() _ = yym65 if false { } else { *((*int)(yyv64)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllAtOnce = false } else { yyv66 := &x.AllAtOnce yym67 := z.DecBinary() _ = yym67 if false { } else { *((*bool)(yyv66)) = r.DecodeBool() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Datacenters = nil } else { yyv68 := &x.Datacenters yym69 := z.DecBinary() _ = yym69 if false { } else { z.F.DecSliceStringX(yyv68, false, d) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Constraints = nil } else { yyv70 := &x.Constraints yym71 := z.DecBinary() _ = yym71 if false { } else { h.decSlicePtrtoConstraint((*[]*Constraint)(yyv70), d) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskGroups = nil } else { yyv72 := &x.TaskGroups yym73 := z.DecBinary() _ = yym73 if false { } else { h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(yyv72), d) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Update = UpdateStrategy{} } else { yyv74 := &x.Update yyv74.CodecDecodeSelf(d) } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Periodic != nil { x.Periodic = nil } } else { if x.Periodic == nil { x.Periodic = new(PeriodicConfig) } x.Periodic.CodecDecodeSelf(d) } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.ParameterizedJob != nil { x.ParameterizedJob = nil } } else { if x.ParameterizedJob == nil { x.ParameterizedJob = new(ParameterizedJobConfig) } x.ParameterizedJob.CodecDecodeSelf(d) } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Payload = nil } else { yyv77 := &x.Payload yym78 := z.DecBinary() _ = yym78 if false { } else { *yyv77 = r.DecodeBytes(*(*[]byte)(yyv77), false, false) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Meta = nil } else { yyv79 := &x.Meta yym80 := z.DecBinary() _ = yym80 if false { } else { z.F.DecMapStringStringX(yyv79, false, d) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.VaultToken = "" } else { yyv81 := &x.VaultToken yym82 := z.DecBinary() _ = yym82 if false { } else { *((*string)(yyv81)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv83 := &x.Status yym84 := z.DecBinary() _ = yym84 if false { } else { *((*string)(yyv83)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv85 := &x.StatusDescription yym86 := z.DecBinary() _ = yym86 if false { } else { *((*string)(yyv85)) = r.DecodeString() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Stable = false } else { yyv87 := &x.Stable yym88 := z.DecBinary() _ = yym88 if false { } else { *((*bool)(yyv87)) = r.DecodeBool() } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Version = 0 } else { yyv89 := &x.Version yym90 := z.DecBinary() _ = yym90 if false { } else { *((*uint64)(yyv89)) = uint64(r.DecodeUint(64)) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SubmitTime = 0 } else { yyv91 := &x.SubmitTime yym92 := z.DecBinary() _ = yym92 if false { } else { *((*int64)(yyv91)) = int64(r.DecodeInt(64)) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv93 := &x.CreateIndex yym94 := z.DecBinary() _ = yym94 if false { } else { *((*uint64)(yyv93)) = uint64(r.DecodeUint(64)) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv95 := &x.ModifyIndex yym96 := z.DecBinary() _ = yym96 if false { } else { *((*uint64)(yyv95)) = uint64(r.DecodeUint(64)) } } yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv97 := &x.JobModifyIndex yym98 := z.DecBinary() _ = yym98 if false { } else { *((*uint64)(yyv97)) = uint64(r.DecodeUint(64)) } } for { yyj51++ if yyhl51 { yyb51 = yyj51 > l } else { yyb51 = r.CheckBreak() } if yyb51 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj51-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobListStub) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [15]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(15) } else { yynn2 = 15 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ParentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ParentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ParentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Type")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeInt(int64(x.Priority)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Priority")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeInt(int64(x.Priority)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.Periodic)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Periodic")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.Periodic)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeBool(bool(x.ParameterizedJob)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ParameterizedJob")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeBool(bool(x.ParameterizedJob)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeBool(bool(x.Stop)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Stop")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeBool(bool(x.Stop)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.JobSummary == nil { r.EncodeNil() } else { x.JobSummary.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobSummary")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.JobSummary == nil { r.EncodeNil() } else { x.JobSummary.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym37 := z.EncBinary() _ = yym37 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym38 := z.EncBinary() _ = yym38 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym40 := z.EncBinary() _ = yym40 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym41 := z.EncBinary() _ = yym41 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym43 := z.EncBinary() _ = yym43 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym44 := z.EncBinary() _ = yym44 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym46 := z.EncBinary() _ = yym46 if false { } else { r.EncodeInt(int64(x.SubmitTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SubmitTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym47 := z.EncBinary() _ = yym47 if false { } else { r.EncodeInt(int64(x.SubmitTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobListStub) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "ParentID": if r.TryDecodeAsNil() { x.ParentID = "" } else { yyv6 := &x.ParentID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv8 := &x.Name yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { yyv10 := &x.Type yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "Priority": if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv12 := &x.Priority yym13 := z.DecBinary() _ = yym13 if false { } else { *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Periodic": if r.TryDecodeAsNil() { x.Periodic = false } else { yyv14 := &x.Periodic yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "ParameterizedJob": if r.TryDecodeAsNil() { x.ParameterizedJob = false } else { yyv16 := &x.ParameterizedJob yym17 := z.DecBinary() _ = yym17 if false { } else { *((*bool)(yyv16)) = r.DecodeBool() } } case "Stop": if r.TryDecodeAsNil() { x.Stop = false } else { yyv18 := &x.Stop yym19 := z.DecBinary() _ = yym19 if false { } else { *((*bool)(yyv18)) = r.DecodeBool() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv20 := &x.Status yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv22 := &x.StatusDescription yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } case "JobSummary": if r.TryDecodeAsNil() { if 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 { yyv25 := &x.CreateIndex yym26 := z.DecBinary() _ = yym26 if false { } else { *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv27 := &x.ModifyIndex yym28 := z.DecBinary() _ = yym28 if false { } else { *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv29 := &x.JobModifyIndex yym30 := z.DecBinary() _ = yym30 if false { } else { *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) } } case "SubmitTime": if r.TryDecodeAsNil() { x.SubmitTime = 0 } else { yyv31 := &x.SubmitTime yym32 := z.DecBinary() _ = yym32 if false { } else { *((*int64)(yyv31)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj33 int var yyb33 bool var yyhl33 bool = l >= 0 yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv34 := &x.ID yym35 := z.DecBinary() _ = yym35 if false { } else { *((*string)(yyv34)) = r.DecodeString() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ParentID = "" } else { yyv36 := &x.ParentID yym37 := z.DecBinary() _ = yym37 if false { } else { *((*string)(yyv36)) = r.DecodeString() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv38 := &x.Name yym39 := z.DecBinary() _ = yym39 if false { } else { *((*string)(yyv38)) = r.DecodeString() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Type = "" } else { yyv40 := &x.Type yym41 := z.DecBinary() _ = yym41 if false { } else { *((*string)(yyv40)) = r.DecodeString() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv42 := &x.Priority yym43 := z.DecBinary() _ = yym43 if false { } else { *((*int)(yyv42)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Periodic = false } else { yyv44 := &x.Periodic yym45 := z.DecBinary() _ = yym45 if false { } else { *((*bool)(yyv44)) = r.DecodeBool() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ParameterizedJob = false } else { yyv46 := &x.ParameterizedJob yym47 := z.DecBinary() _ = yym47 if false { } else { *((*bool)(yyv46)) = r.DecodeBool() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Stop = false } else { yyv48 := &x.Stop yym49 := z.DecBinary() _ = yym49 if false { } else { *((*bool)(yyv48)) = r.DecodeBool() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv50 := &x.Status yym51 := z.DecBinary() _ = yym51 if false { } else { *((*string)(yyv50)) = r.DecodeString() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv52 := &x.StatusDescription yym53 := z.DecBinary() _ = yym53 if false { } else { *((*string)(yyv52)) = r.DecodeString() } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.JobSummary != nil { x.JobSummary = nil } } else { if x.JobSummary == nil { x.JobSummary = new(JobSummary) } x.JobSummary.CodecDecodeSelf(d) } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv55 := &x.CreateIndex yym56 := z.DecBinary() _ = yym56 if false { } else { *((*uint64)(yyv55)) = uint64(r.DecodeUint(64)) } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv57 := &x.ModifyIndex yym58 := z.DecBinary() _ = yym58 if false { } else { *((*uint64)(yyv57)) = uint64(r.DecodeUint(64)) } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv59 := &x.JobModifyIndex yym60 := z.DecBinary() _ = yym60 if false { } else { *((*uint64)(yyv59)) = uint64(r.DecodeUint(64)) } } yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SubmitTime = 0 } else { yyv61 := &x.SubmitTime yym62 := z.DecBinary() _ = yym62 if false { } else { *((*int64)(yyv61)) = int64(r.DecodeInt(64)) } } for { yyj33++ if yyhl33 { yyb33 = yyj33 > l } else { yyb33 = r.CheckBreak() } if yyb33 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj33-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobSummary) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Summary == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Summary")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Summary == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Children == nil { r.EncodeNil() } else { x.Children.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Children")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Children == nil { r.EncodeNil() } else { x.Children.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobSummary) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv4 := &x.JobID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Summary": if r.TryDecodeAsNil() { x.Summary = nil } else { yyv6 := &x.Summary yym7 := z.DecBinary() _ = yym7 if false { } else { h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(yyv6), d) } } case "Children": if r.TryDecodeAsNil() { if 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 { yyv9 := &x.CreateIndex yym10 := z.DecBinary() _ = yym10 if false { } else { *((*uint64)(yyv9)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv11 := &x.ModifyIndex yym12 := z.DecBinary() _ = yym12 if false { } else { *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv14 := &x.JobID yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Summary = nil } else { yyv16 := &x.Summary yym17 := z.DecBinary() _ = yym17 if false { } else { h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(yyv16), d) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Children != nil { x.Children = nil } } else { if x.Children == nil { x.Children = new(JobChildrenSummary) } x.Children.CodecDecodeSelf(d) } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv19 := &x.CreateIndex yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv21 := &x.ModifyIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj13-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *JobChildrenSummary) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeInt(int64(x.Pending)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Pending")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeInt(int64(x.Pending)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.Running)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Running")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.Running)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeInt(int64(x.Dead)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Dead")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeInt(int64(x.Dead)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *JobChildrenSummary) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *JobChildrenSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Pending": if r.TryDecodeAsNil() { x.Pending = 0 } else { yyv4 := &x.Pending yym5 := z.DecBinary() _ = yym5 if false { } else { *((*int64)(yyv4)) = int64(r.DecodeInt(64)) } } case "Running": if r.TryDecodeAsNil() { x.Running = 0 } else { yyv6 := &x.Running yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int64)(yyv6)) = int64(r.DecodeInt(64)) } } case "Dead": if r.TryDecodeAsNil() { x.Dead = 0 } else { yyv8 := &x.Dead yym9 := z.DecBinary() _ = yym9 if false { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *JobChildrenSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Pending = 0 } else { yyv11 := &x.Pending yym12 := z.DecBinary() _ = yym12 if false { } else { *((*int64)(yyv11)) = int64(r.DecodeInt(64)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Running = 0 } else { yyv13 := &x.Running yym14 := z.DecBinary() _ = yym14 if false { } else { *((*int64)(yyv13)) = int64(r.DecodeInt(64)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Dead = 0 } else { yyv15 := &x.Dead yym16 := z.DecBinary() _ = yym16 if false { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *TaskGroupSummary) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeInt(int64(x.Queued)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Queued")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeInt(int64(x.Queued)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.Complete)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Complete")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.Complete)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeInt(int64(x.Failed)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Failed")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeInt(int64(x.Failed)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeInt(int64(x.Running)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Running")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeInt(int64(x.Running)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeInt(int64(x.Starting)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Starting")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeInt(int64(x.Starting)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeInt(int64(x.Lost)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Lost")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeInt(int64(x.Lost)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *TaskGroupSummary) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *TaskGroupSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Queued": if r.TryDecodeAsNil() { x.Queued = 0 } else { yyv4 := &x.Queued yym5 := z.DecBinary() _ = yym5 if false { } else { *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Complete": if r.TryDecodeAsNil() { x.Complete = 0 } else { yyv6 := &x.Complete yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Failed": if r.TryDecodeAsNil() { x.Failed = 0 } else { yyv8 := &x.Failed yym9 := z.DecBinary() _ = yym9 if false { } else { *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Running": if r.TryDecodeAsNil() { x.Running = 0 } else { yyv10 := &x.Running yym11 := z.DecBinary() _ = yym11 if false { } else { *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Starting": if r.TryDecodeAsNil() { x.Starting = 0 } else { yyv12 := &x.Starting yym13 := z.DecBinary() _ = yym13 if false { } else { *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Lost": if r.TryDecodeAsNil() { x.Lost = 0 } else { yyv14 := &x.Lost yym15 := z.DecBinary() _ = yym15 if false { } else { *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *TaskGroupSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Queued = 0 } else { yyv17 := &x.Queued yym18 := z.DecBinary() _ = yym18 if false { } else { *((*int)(yyv17)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Complete = 0 } else { yyv19 := &x.Complete yym20 := z.DecBinary() _ = yym20 if false { } else { *((*int)(yyv19)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Failed = 0 } else { yyv21 := &x.Failed yym22 := z.DecBinary() _ = yym22 if false { } else { *((*int)(yyv21)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Running = 0 } else { yyv23 := &x.Running yym24 := z.DecBinary() _ = yym24 if false { } else { *((*int)(yyv23)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Starting = 0 } else { yyv25 := &x.Starting yym26 := z.DecBinary() _ = yym26 if false { } else { *((*int)(yyv25)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Lost = 0 } else { yyv27 := &x.Lost yym28 := z.DecBinary() _ = yym28 if false { } else { *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { yyb16 = r.CheckBreak() } if yyb16 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj16-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *UpdateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else if z.HasExtensions() && z.EncExt(x.Stagger) { } else { r.EncodeInt(int64(x.Stagger)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Stagger")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else if z.HasExtensions() && z.EncExt(x.Stagger) { } else { r.EncodeInt(int64(x.Stagger)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.MaxParallel)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxParallel")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.MaxParallel)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.HealthCheck)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HealthCheck")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.HealthCheck)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else if z.HasExtensions() && z.EncExt(x.MinHealthyTime) { } else { r.EncodeInt(int64(x.MinHealthyTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MinHealthyTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else if z.HasExtensions() && z.EncExt(x.MinHealthyTime) { } else { r.EncodeInt(int64(x.MinHealthyTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.HealthyDeadline) { } else { r.EncodeInt(int64(x.HealthyDeadline)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HealthyDeadline")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.HealthyDeadline) { } else { r.EncodeInt(int64(x.HealthyDeadline)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeBool(bool(x.AutoRevert)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AutoRevert")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeBool(bool(x.AutoRevert)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeInt(int64(x.Canary)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Canary")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeInt(int64(x.Canary)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *UpdateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *UpdateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Stagger": if r.TryDecodeAsNil() { x.Stagger = 0 } else { yyv4 := &x.Stagger yym5 := z.DecBinary() _ = yym5 if false { } else if z.HasExtensions() && z.DecExt(yyv4) { } else { *((*int64)(yyv4)) = int64(r.DecodeInt(64)) } } case "MaxParallel": if r.TryDecodeAsNil() { x.MaxParallel = 0 } else { yyv6 := &x.MaxParallel yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "HealthCheck": if r.TryDecodeAsNil() { x.HealthCheck = "" } else { yyv8 := &x.HealthCheck yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "MinHealthyTime": if r.TryDecodeAsNil() { x.MinHealthyTime = 0 } else { yyv10 := &x.MinHealthyTime yym11 := z.DecBinary() _ = yym11 if false { } else if z.HasExtensions() && z.DecExt(yyv10) { } else { *((*int64)(yyv10)) = int64(r.DecodeInt(64)) } } case "HealthyDeadline": if r.TryDecodeAsNil() { x.HealthyDeadline = 0 } else { yyv12 := &x.HealthyDeadline yym13 := z.DecBinary() _ = yym13 if false { } else if z.HasExtensions() && z.DecExt(yyv12) { } else { *((*int64)(yyv12)) = int64(r.DecodeInt(64)) } } case "AutoRevert": if r.TryDecodeAsNil() { x.AutoRevert = false } else { yyv14 := &x.AutoRevert yym15 := z.DecBinary() _ = yym15 if false { } else { *((*bool)(yyv14)) = r.DecodeBool() } } case "Canary": if r.TryDecodeAsNil() { x.Canary = 0 } else { yyv16 := &x.Canary yym17 := z.DecBinary() _ = yym17 if false { } else { *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *UpdateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Stagger = 0 } else { yyv19 := &x.Stagger yym20 := z.DecBinary() _ = yym20 if false { } else if z.HasExtensions() && z.DecExt(yyv19) { } else { *((*int64)(yyv19)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxParallel = 0 } else { yyv21 := &x.MaxParallel yym22 := z.DecBinary() _ = yym22 if false { } else { *((*int)(yyv21)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HealthCheck = "" } else { yyv23 := &x.HealthCheck yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MinHealthyTime = 0 } else { yyv25 := &x.MinHealthyTime yym26 := z.DecBinary() _ = yym26 if false { } else if z.HasExtensions() && z.DecExt(yyv25) { } else { *((*int64)(yyv25)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HealthyDeadline = 0 } else { yyv27 := &x.HealthyDeadline yym28 := z.DecBinary() _ = yym28 if false { } else if z.HasExtensions() && z.DecExt(yyv27) { } else { *((*int64)(yyv27)) = int64(r.DecodeInt(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AutoRevert = false } else { yyv29 := &x.AutoRevert yym30 := z.DecBinary() _ = yym30 if false { } else { *((*bool)(yyv29)) = r.DecodeBool() } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Canary = 0 } else { yyv31 := &x.Canary yym32 := z.DecBinary() _ = yym32 if false { } else { *((*int)(yyv31)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PeriodicConfig) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeBool(bool(x.Enabled)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Enabled")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeBool(bool(x.Enabled)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Spec)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Spec")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Spec)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SpecType)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SpecType")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SpecType)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.ProhibitOverlap)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ProhibitOverlap")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.ProhibitOverlap)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TimeZone)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TimeZone")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TimeZone)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PeriodicConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PeriodicConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Enabled": if r.TryDecodeAsNil() { x.Enabled = false } else { yyv4 := &x.Enabled yym5 := z.DecBinary() _ = yym5 if false { } else { *((*bool)(yyv4)) = r.DecodeBool() } } case "Spec": if r.TryDecodeAsNil() { x.Spec = "" } else { yyv6 := &x.Spec yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "SpecType": if r.TryDecodeAsNil() { x.SpecType = "" } else { yyv8 := &x.SpecType yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "ProhibitOverlap": if r.TryDecodeAsNil() { x.ProhibitOverlap = false } else { yyv10 := &x.ProhibitOverlap yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "TimeZone": if r.TryDecodeAsNil() { x.TimeZone = "" } else { yyv12 := &x.TimeZone yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PeriodicConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Enabled = false } else { yyv15 := &x.Enabled yym16 := z.DecBinary() _ = yym16 if false { } else { *((*bool)(yyv15)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Spec = "" } else { yyv17 := &x.Spec yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SpecType = "" } else { yyv19 := &x.SpecType yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ProhibitOverlap = false } else { yyv21 := &x.ProhibitOverlap yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TimeZone = "" } else { yyv23 := &x.TimeZone yym24 := z.DecBinary() _ = yym24 if false { } else { *((*string)(yyv23)) = r.DecodeString() } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PeriodicLaunch) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy7 := &x.Launch yym8 := z.EncBinary() _ = yym8 if false { } else if yym9 := z.TimeRtidIfBinc(); yym9 != 0 { r.EncodeBuiltin(yym9, yy7) } else if z.HasExtensions() && z.EncExt(yy7) { } else if yym8 { z.EncBinaryMarshal(yy7) } else if !yym8 && z.IsJSONHandle() { z.EncJSONMarshal(yy7) } else { z.EncFallback(yy7) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Launch")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yy10 := &x.Launch yym11 := z.EncBinary() _ = yym11 if false { } else if yym12 := z.TimeRtidIfBinc(); yym12 != 0 { r.EncodeBuiltin(yym12, yy10) } else if z.HasExtensions() && z.EncExt(yy10) { } else if yym11 { z.EncBinaryMarshal(yy10) } else if !yym11 && z.IsJSONHandle() { z.EncJSONMarshal(yy10) } else { z.EncFallback(yy10) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym15 := z.EncBinary() _ = yym15 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym18 := z.EncBinary() _ = yym18 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PeriodicLaunch) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PeriodicLaunch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Launch": if r.TryDecodeAsNil() { x.Launch = time.Time{} } else { yyv6 := &x.Launch yym7 := z.DecBinary() _ = yym7 if false { } else if yym8 := z.TimeRtidIfBinc(); yym8 != 0 { r.DecodeBuiltin(yym8, yyv6) } else if z.HasExtensions() && z.DecExt(yyv6) { } else if yym7 { z.DecBinaryUnmarshal(yyv6) } else if !yym7 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv6) } else { z.DecFallback(yyv6, false) } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv9 := &x.CreateIndex yym10 := z.DecBinary() _ = yym10 if false { } else { *((*uint64)(yyv9)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv11 := &x.ModifyIndex yym12 := z.DecBinary() _ = yym12 if false { } else { *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PeriodicLaunch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv14 := &x.ID yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Launch = time.Time{} } else { yyv16 := &x.Launch yym17 := z.DecBinary() _ = yym17 if false { } else if yym18 := z.TimeRtidIfBinc(); yym18 != 0 { r.DecodeBuiltin(yym18, yyv16) } else if z.HasExtensions() && z.DecExt(yyv16) { } else if yym17 { z.DecBinaryUnmarshal(yyv16) } else if !yym17 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv16) } else { z.DecFallback(yyv16, false) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv19 := &x.CreateIndex yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv21 := &x.ModifyIndex yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj13-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ParameterizedJobConfig) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Payload)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Payload")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Payload)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.MetaRequired == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncSliceStringV(x.MetaRequired, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MetaRequired")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.MetaRequired == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncSliceStringV(x.MetaRequired, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.MetaOptional == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncSliceStringV(x.MetaOptional, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MetaOptional")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.MetaOptional == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncSliceStringV(x.MetaOptional, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ParameterizedJobConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ParameterizedJobConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Payload": if r.TryDecodeAsNil() { x.Payload = "" } else { yyv4 := &x.Payload yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "MetaRequired": if r.TryDecodeAsNil() { x.MetaRequired = nil } else { yyv6 := &x.MetaRequired yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } case "MetaOptional": if r.TryDecodeAsNil() { x.MetaOptional = nil } else { yyv8 := &x.MetaOptional yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ParameterizedJobConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Payload = "" } else { yyv11 := &x.Payload yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MetaRequired = nil } else { yyv13 := &x.MetaRequired yym14 := z.DecBinary() _ = yym14 if false { } else { z.F.DecSliceStringX(yyv13, false, d) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MetaOptional = nil } else { yyv15 := &x.MetaOptional yym16 := z.DecBinary() _ = yym16 if false { } else { z.F.DecSliceStringX(yyv15, false, d) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DispatchPayloadConfig) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.File)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("File")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.File)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DispatchPayloadConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DispatchPayloadConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "File": if r.TryDecodeAsNil() { x.File = "" } else { yyv4 := &x.File yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DispatchPayloadConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.File = "" } else { yyv7 := &x.File yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeInt(int64(x.Attempts)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Attempts")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeInt(int64(x.Attempts)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else if z.HasExtensions() && z.EncExt(x.Interval) { } else { r.EncodeInt(int64(x.Interval)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Interval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else if z.HasExtensions() && z.EncExt(x.Interval) { } else { r.EncodeInt(int64(x.Interval)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else if z.HasExtensions() && z.EncExt(x.Delay) { } else { r.EncodeInt(int64(x.Delay)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Delay")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else if z.HasExtensions() && z.EncExt(x.Delay) { } else { r.EncodeInt(int64(x.Delay)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Mode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Mode")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Mode)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *RestartPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Attempts": if r.TryDecodeAsNil() { x.Attempts = 0 } else { yyv4 := &x.Attempts yym5 := z.DecBinary() _ = yym5 if false { } else { *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Interval": if r.TryDecodeAsNil() { x.Interval = 0 } else { yyv6 := &x.Interval yym7 := z.DecBinary() _ = yym7 if false { } else if z.HasExtensions() && z.DecExt(yyv6) { } else { *((*int64)(yyv6)) = int64(r.DecodeInt(64)) } } case "Delay": if r.TryDecodeAsNil() { x.Delay = 0 } else { yyv8 := &x.Delay yym9 := z.DecBinary() _ = yym9 if false { } else if z.HasExtensions() && z.DecExt(yyv8) { } else { *((*int64)(yyv8)) = int64(r.DecodeInt(64)) } } case "Mode": if r.TryDecodeAsNil() { x.Mode = "" } else { yyv10 := &x.Mode yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *RestartPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Attempts = 0 } else { yyv13 := &x.Attempts yym14 := z.DecBinary() _ = yym14 if false { } else { *((*int)(yyv13)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Interval = 0 } else { yyv15 := &x.Interval yym16 := z.DecBinary() _ = yym16 if false { } else if z.HasExtensions() && z.DecExt(yyv15) { } else { *((*int64)(yyv15)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Delay = 0 } else { yyv17 := &x.Delay yym18 := z.DecBinary() _ = yym18 if false { } else if z.HasExtensions() && z.DecExt(yyv17) { } else { *((*int64)(yyv17)) = int64(r.DecodeInt(64)) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Mode = "" } else { yyv19 := &x.Mode yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *TaskGroup) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [8]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(8) } else { yynn2 = 8 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.Count)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Count")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.Count)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Update == nil { r.EncodeNil() } else { x.Update.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Update")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Update == nil { r.EncodeNil() } else { x.Update.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Constraints == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Constraints")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Constraints == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.RestartPolicy == nil { r.EncodeNil() } else { x.RestartPolicy.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RestartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.RestartPolicy == nil { r.EncodeNil() } else { x.RestartPolicy.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Tasks == nil { r.EncodeNil() } else { yym19 := z.EncBinary() _ = yym19 if false { } else { h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Tasks")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Tasks == nil { r.EncodeNil() } else { yym20 := z.EncBinary() _ = yym20 if false { } else { h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.EphemeralDisk == nil { r.EncodeNil() } else { x.EphemeralDisk.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EphemeralDisk")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.EphemeralDisk == nil { r.EncodeNil() } else { x.EphemeralDisk.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Meta == nil { r.EncodeNil() } else { yym25 := z.EncBinary() _ = yym25 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Meta")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Meta == nil { r.EncodeNil() } else { yym26 := z.EncBinary() _ = yym26 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *TaskGroup) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *TaskGroup) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv4 := &x.Name yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Count": if r.TryDecodeAsNil() { x.Count = 0 } else { yyv6 := &x.Count yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Update": if r.TryDecodeAsNil() { if x.Update != nil { x.Update = nil } } else { if x.Update == nil { x.Update = new(UpdateStrategy) } x.Update.CodecDecodeSelf(d) } case "Constraints": if r.TryDecodeAsNil() { x.Constraints = nil } else { yyv9 := &x.Constraints yym10 := z.DecBinary() _ = yym10 if false { } else { h.decSlicePtrtoConstraint((*[]*Constraint)(yyv9), d) } } case "RestartPolicy": if r.TryDecodeAsNil() { if 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 { yyv12 := &x.Tasks yym13 := z.DecBinary() _ = yym13 if false { } else { h.decSlicePtrtoTask((*[]*Task)(yyv12), d) } } case "EphemeralDisk": if r.TryDecodeAsNil() { if 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 { yyv15 := &x.Meta yym16 := z.DecBinary() _ = yym16 if false { } else { z.F.DecMapStringStringX(yyv15, false, d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *TaskGroup) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv18 := &x.Name yym19 := z.DecBinary() _ = yym19 if false { } else { *((*string)(yyv18)) = r.DecodeString() } } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Count = 0 } else { yyv20 := &x.Count yym21 := z.DecBinary() _ = yym21 if false { } else { *((*int)(yyv20)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Update != nil { x.Update = nil } } else { if x.Update == nil { x.Update = new(UpdateStrategy) } x.Update.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Constraints = nil } else { yyv23 := &x.Constraints yym24 := z.DecBinary() _ = yym24 if false { } else { h.decSlicePtrtoConstraint((*[]*Constraint)(yyv23), d) } } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.RestartPolicy != nil { x.RestartPolicy = nil } } else { if x.RestartPolicy == nil { x.RestartPolicy = new(RestartPolicy) } x.RestartPolicy.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Tasks = nil } else { yyv26 := &x.Tasks yym27 := z.DecBinary() _ = yym27 if false { } else { h.decSlicePtrtoTask((*[]*Task)(yyv26), d) } } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.EphemeralDisk != nil { x.EphemeralDisk = nil } } else { if x.EphemeralDisk == nil { x.EphemeralDisk = new(EphemeralDisk) } x.EphemeralDisk.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Meta = nil } else { yyv29 := &x.Meta yym30 := z.DecBinary() _ = yym30 if false { } else { z.F.DecMapStringStringX(yyv29, false, d) } } for { yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj17-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *ServiceCheck) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [13]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(13) } else { yynn2 = 13 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Type")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Command)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Command")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Command)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Args == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Args")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Args == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Path)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Protocol)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Protocol")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Protocol)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PortLabel)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("PortLabel")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PortLabel)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else if z.HasExtensions() && z.EncExt(x.Interval) { } else { r.EncodeInt(int64(x.Interval)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Interval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else if z.HasExtensions() && z.EncExt(x.Interval) { } else { r.EncodeInt(int64(x.Interval)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else if z.HasExtensions() && z.EncExt(x.Timeout) { } else { r.EncodeInt(int64(x.Timeout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Timeout")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else if z.HasExtensions() && z.EncExt(x.Timeout) { } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.InitialStatus)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("InitialStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.InitialStatus)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeBool(bool(x.TLSSkipVerify)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TLSSkipVerify")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else { r.EncodeBool(bool(x.TLSSkipVerify)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym37 := z.EncBinary() _ = yym37 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Method)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Method")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym38 := z.EncBinary() _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Method)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Header == nil { r.EncodeNil() } else { yym40 := z.EncBinary() _ = yym40 if false { } else { h.encMapstringSlicestring((map[string][]string)(x.Header), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Header")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Header == nil { r.EncodeNil() } else { yym41 := z.EncBinary() _ = yym41 if false { } else { h.encMapstringSlicestring((map[string][]string)(x.Header), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *ServiceCheck) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *ServiceCheck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv4 := &x.Name yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { yyv6 := &x.Type yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Command": if r.TryDecodeAsNil() { x.Command = "" } else { yyv8 := &x.Command yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv10 := &x.Args yym11 := z.DecBinary() _ = yym11 if false { } else { z.F.DecSliceStringX(yyv10, false, d) } } case "Path": if r.TryDecodeAsNil() { x.Path = "" } else { yyv12 := &x.Path yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "Protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { yyv14 := &x.Protocol yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } case "PortLabel": if r.TryDecodeAsNil() { x.PortLabel = "" } else { yyv16 := &x.PortLabel yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "Interval": if r.TryDecodeAsNil() { x.Interval = 0 } else { yyv18 := &x.Interval yym19 := z.DecBinary() _ = yym19 if false { } else if z.HasExtensions() && z.DecExt(yyv18) { } else { *((*int64)(yyv18)) = int64(r.DecodeInt(64)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { yyv20 := &x.Timeout yym21 := z.DecBinary() _ = yym21 if false { } else if z.HasExtensions() && z.DecExt(yyv20) { } else { *((*int64)(yyv20)) = int64(r.DecodeInt(64)) } } case "InitialStatus": if r.TryDecodeAsNil() { x.InitialStatus = "" } else { yyv22 := &x.InitialStatus yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } case "TLSSkipVerify": if r.TryDecodeAsNil() { x.TLSSkipVerify = false } else { yyv24 := &x.TLSSkipVerify yym25 := z.DecBinary() _ = yym25 if false { } else { *((*bool)(yyv24)) = r.DecodeBool() } } case "Method": if r.TryDecodeAsNil() { x.Method = "" } else { yyv26 := &x.Method yym27 := z.DecBinary() _ = yym27 if false { } else { *((*string)(yyv26)) = r.DecodeString() } } case "Header": if r.TryDecodeAsNil() { x.Header = nil } else { yyv28 := &x.Header yym29 := z.DecBinary() _ = yym29 if false { } else { h.decMapstringSlicestring((*map[string][]string)(yyv28), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *ServiceCheck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv31 := &x.Name yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Type = "" } else { yyv33 := &x.Type yym34 := z.DecBinary() _ = yym34 if false { } else { *((*string)(yyv33)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Command = "" } else { yyv35 := &x.Command yym36 := z.DecBinary() _ = yym36 if false { } else { *((*string)(yyv35)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Args = nil } else { yyv37 := &x.Args yym38 := z.DecBinary() _ = yym38 if false { } else { z.F.DecSliceStringX(yyv37, false, d) } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Path = "" } else { yyv39 := &x.Path yym40 := z.DecBinary() _ = yym40 if false { } else { *((*string)(yyv39)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Protocol = "" } else { yyv41 := &x.Protocol yym42 := z.DecBinary() _ = yym42 if false { } else { *((*string)(yyv41)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.PortLabel = "" } else { yyv43 := &x.PortLabel yym44 := z.DecBinary() _ = yym44 if false { } else { *((*string)(yyv43)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Interval = 0 } else { yyv45 := &x.Interval yym46 := z.DecBinary() _ = yym46 if false { } else if z.HasExtensions() && z.DecExt(yyv45) { } else { *((*int64)(yyv45)) = int64(r.DecodeInt(64)) } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Timeout = 0 } else { yyv47 := &x.Timeout yym48 := z.DecBinary() _ = yym48 if false { } else if z.HasExtensions() && z.DecExt(yyv47) { } else { *((*int64)(yyv47)) = int64(r.DecodeInt(64)) } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.InitialStatus = "" } else { yyv49 := &x.InitialStatus yym50 := z.DecBinary() _ = yym50 if false { } else { *((*string)(yyv49)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TLSSkipVerify = false } else { yyv51 := &x.TLSSkipVerify yym52 := z.DecBinary() _ = yym52 if false { } else { *((*bool)(yyv51)) = r.DecodeBool() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Method = "" } else { yyv53 := &x.Method yym54 := z.DecBinary() _ = yym54 if false { } else { *((*string)(yyv53)) = r.DecodeString() } } yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Header = nil } else { yyv55 := &x.Header yym56 := z.DecBinary() _ = yym56 if false { } else { h.decMapstringSlicestring((*map[string][]string)(yyv55), d) } } for { yyj30++ if yyhl30 { yyb30 = yyj30 > l } else { yyb30 = r.CheckBreak() } if yyb30 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj30-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(5) } else { yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PortLabel)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("PortLabel")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PortLabel)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AddressMode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AddressMode")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.AddressMode)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Tags == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { z.F.EncSliceStringV(x.Tags, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Tags")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Tags == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { z.F.EncSliceStringV(x.Tags, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Checks == nil { r.EncodeNil() } else { yym16 := z.EncBinary() _ = yym16 if false { } else { h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Checks")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Checks == nil { r.EncodeNil() } else { yym17 := z.EncBinary() _ = yym17 if false { } else { h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv4 := &x.Name yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "PortLabel": if r.TryDecodeAsNil() { x.PortLabel = "" } else { yyv6 := &x.PortLabel yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "AddressMode": if r.TryDecodeAsNil() { x.AddressMode = "" } else { yyv8 := &x.AddressMode yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Tags": if r.TryDecodeAsNil() { x.Tags = nil } else { yyv10 := &x.Tags yym11 := z.DecBinary() _ = yym11 if false { } else { z.F.DecSliceStringX(yyv10, false, d) } } case "Checks": if r.TryDecodeAsNil() { x.Checks = nil } else { yyv12 := &x.Checks yym13 := z.DecBinary() _ = yym13 if false { } else { h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(yyv12), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv15 := &x.Name yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.PortLabel = "" } else { yyv17 := &x.PortLabel yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AddressMode = "" } else { yyv19 := &x.AddressMode yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Tags = nil } else { yyv21 := &x.Tags yym22 := z.DecBinary() _ = yym22 if false { } else { z.F.DecSliceStringX(yyv21, false, d) } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Checks = nil } else { yyv23 := &x.Checks yym24 := z.DecBinary() _ = yym24 if false { } else { h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(yyv23), d) } } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *LogConfig) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeInt(int64(x.MaxFiles)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxFiles")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeInt(int64(x.MaxFiles)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.MaxFileSizeMB)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("MaxFileSizeMB")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.MaxFileSizeMB)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *LogConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *LogConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "MaxFiles": if r.TryDecodeAsNil() { x.MaxFiles = 0 } else { yyv4 := &x.MaxFiles yym5 := z.DecBinary() _ = yym5 if false { } else { *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "MaxFileSizeMB": if r.TryDecodeAsNil() { x.MaxFileSizeMB = 0 } else { yyv6 := &x.MaxFileSizeMB yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *LogConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxFiles = 0 } else { yyv9 := &x.MaxFiles yym10 := z.DecBinary() _ = yym10 if false { } else { *((*int)(yyv9)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.MaxFileSizeMB = 0 } else { yyv11 := &x.MaxFileSizeMB yym12 := z.DecBinary() _ = yym12 if false { } else { *((*int)(yyv11)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Task) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [17]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(17) } else { yynn2 = 17 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Driver)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Driver")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Driver)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.User)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("User")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.User)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Config == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { z.F.EncMapStringIntfV(x.Config, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Config")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Config == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { z.F.EncMapStringIntfV(x.Config, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Env == nil { r.EncodeNil() } else { yym16 := z.EncBinary() _ = yym16 if false { } else { z.F.EncMapStringStringV(x.Env, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Env")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Env == nil { r.EncodeNil() } else { yym17 := z.EncBinary() _ = yym17 if false { } else { z.F.EncMapStringStringV(x.Env, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Services == nil { r.EncodeNil() } else { yym19 := z.EncBinary() _ = yym19 if false { } else { h.encSlicePtrtoService(([]*Service)(x.Services), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Services")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Services == nil { r.EncodeNil() } else { yym20 := z.EncBinary() _ = yym20 if false { } else { h.encSlicePtrtoService(([]*Service)(x.Services), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Vault == nil { r.EncodeNil() } else { x.Vault.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Vault")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Vault == nil { r.EncodeNil() } else { x.Vault.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Templates == nil { r.EncodeNil() } else { yym25 := z.EncBinary() _ = yym25 if false { } else { h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Templates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Templates == nil { r.EncodeNil() } else { yym26 := z.EncBinary() _ = yym26 if false { } else { h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Constraints == nil { r.EncodeNil() } else { yym28 := z.EncBinary() _ = yym28 if false { } else { h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Constraints")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Constraints == nil { r.EncodeNil() } else { yym29 := z.EncBinary() _ = yym29 if false { } else { h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Resources == nil { r.EncodeNil() } else { x.Resources.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Resources")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Resources == nil { r.EncodeNil() } else { x.Resources.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DispatchPayload == nil { r.EncodeNil() } else { x.DispatchPayload.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DispatchPayload")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DispatchPayload == nil { r.EncodeNil() } else { x.DispatchPayload.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Meta == nil { r.EncodeNil() } else { yym37 := z.EncBinary() _ = yym37 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Meta")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Meta == nil { r.EncodeNil() } else { yym38 := z.EncBinary() _ = yym38 if false { } else { z.F.EncMapStringStringV(x.Meta, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym40 := z.EncBinary() _ = yym40 if false { } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { } else { r.EncodeInt(int64(x.KillTimeout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KillTimeout")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym41 := z.EncBinary() _ = yym41 if false { } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { } else { r.EncodeInt(int64(x.KillTimeout)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.LogConfig == nil { r.EncodeNil() } else { x.LogConfig.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LogConfig")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.LogConfig == nil { r.EncodeNil() } else { x.LogConfig.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Artifacts == nil { r.EncodeNil() } else { yym46 := z.EncBinary() _ = yym46 if false { } else { h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Artifacts")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Artifacts == nil { r.EncodeNil() } else { yym47 := z.EncBinary() _ = yym47 if false { } else { h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym49 := z.EncBinary() _ = yym49 if false { } else { r.EncodeBool(bool(x.Leader)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Leader")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym50 := z.EncBinary() _ = yym50 if false { } else { r.EncodeBool(bool(x.Leader)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym52 := z.EncBinary() _ = yym52 if false { } else if z.HasExtensions() && z.EncExt(x.ShutdownDelay) { } else { r.EncodeInt(int64(x.ShutdownDelay)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ShutdownDelay")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym53 := z.EncBinary() _ = yym53 if false { } else if z.HasExtensions() && z.EncExt(x.ShutdownDelay) { } else { r.EncodeInt(int64(x.ShutdownDelay)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Task) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Task) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv4 := &x.Name yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Driver": if r.TryDecodeAsNil() { x.Driver = "" } else { yyv6 := &x.Driver yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "User": if r.TryDecodeAsNil() { x.User = "" } else { yyv8 := &x.User yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "Config": if r.TryDecodeAsNil() { x.Config = nil } else { yyv10 := &x.Config yym11 := z.DecBinary() _ = yym11 if false { } else { z.F.DecMapStringIntfX(yyv10, false, d) } } case "Env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv12 := &x.Env yym13 := z.DecBinary() _ = yym13 if false { } else { z.F.DecMapStringStringX(yyv12, false, d) } } case "Services": if r.TryDecodeAsNil() { x.Services = nil } else { yyv14 := &x.Services yym15 := z.DecBinary() _ = yym15 if false { } else { h.decSlicePtrtoService((*[]*Service)(yyv14), d) } } case "Vault": if r.TryDecodeAsNil() { if 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 { yyv17 := &x.Templates yym18 := z.DecBinary() _ = yym18 if false { } else { h.decSlicePtrtoTemplate((*[]*Template)(yyv17), d) } } case "Constraints": if r.TryDecodeAsNil() { x.Constraints = nil } else { yyv19 := &x.Constraints yym20 := z.DecBinary() _ = yym20 if false { } else { h.decSlicePtrtoConstraint((*[]*Constraint)(yyv19), d) } } case "Resources": if r.TryDecodeAsNil() { if 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 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 { yyv23 := &x.Meta yym24 := z.DecBinary() _ = yym24 if false { } else { z.F.DecMapStringStringX(yyv23, false, d) } } case "KillTimeout": if r.TryDecodeAsNil() { x.KillTimeout = 0 } else { yyv25 := &x.KillTimeout yym26 := z.DecBinary() _ = yym26 if false { } else if z.HasExtensions() && z.DecExt(yyv25) { } else { *((*int64)(yyv25)) = int64(r.DecodeInt(64)) } } case "LogConfig": if r.TryDecodeAsNil() { if 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 { yyv28 := &x.Artifacts yym29 := z.DecBinary() _ = yym29 if false { } else { h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(yyv28), d) } } case "Leader": if r.TryDecodeAsNil() { x.Leader = false } else { yyv30 := &x.Leader yym31 := z.DecBinary() _ = yym31 if false { } else { *((*bool)(yyv30)) = r.DecodeBool() } } case "ShutdownDelay": if r.TryDecodeAsNil() { x.ShutdownDelay = 0 } else { yyv32 := &x.ShutdownDelay yym33 := z.DecBinary() _ = yym33 if false { } else if z.HasExtensions() && z.DecExt(yyv32) { } else { *((*int64)(yyv32)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Task) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj34 int var yyb34 bool var yyhl34 bool = l >= 0 yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv35 := &x.Name yym36 := z.DecBinary() _ = yym36 if false { } else { *((*string)(yyv35)) = r.DecodeString() } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Driver = "" } else { yyv37 := &x.Driver yym38 := z.DecBinary() _ = yym38 if false { } else { *((*string)(yyv37)) = r.DecodeString() } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.User = "" } else { yyv39 := &x.User yym40 := z.DecBinary() _ = yym40 if false { } else { *((*string)(yyv39)) = r.DecodeString() } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Config = nil } else { yyv41 := &x.Config yym42 := z.DecBinary() _ = yym42 if false { } else { z.F.DecMapStringIntfX(yyv41, false, d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Env = nil } else { yyv43 := &x.Env yym44 := z.DecBinary() _ = yym44 if false { } else { z.F.DecMapStringStringX(yyv43, false, d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Services = nil } else { yyv45 := &x.Services yym46 := z.DecBinary() _ = yym46 if false { } else { h.decSlicePtrtoService((*[]*Service)(yyv45), d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Vault != nil { x.Vault = nil } } else { if x.Vault == nil { x.Vault = new(Vault) } x.Vault.CodecDecodeSelf(d) } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Templates = nil } else { yyv48 := &x.Templates yym49 := z.DecBinary() _ = yym49 if false { } else { h.decSlicePtrtoTemplate((*[]*Template)(yyv48), d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Constraints = nil } else { yyv50 := &x.Constraints yym51 := z.DecBinary() _ = yym51 if false { } else { h.decSlicePtrtoConstraint((*[]*Constraint)(yyv50), d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Resources != nil { x.Resources = nil } } else { if x.Resources == nil { x.Resources = new(Resources) } x.Resources.CodecDecodeSelf(d) } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.DispatchPayload != nil { x.DispatchPayload = nil } } else { if x.DispatchPayload == nil { x.DispatchPayload = new(DispatchPayloadConfig) } x.DispatchPayload.CodecDecodeSelf(d) } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Meta = nil } else { yyv54 := &x.Meta yym55 := z.DecBinary() _ = yym55 if false { } else { z.F.DecMapStringStringX(yyv54, false, d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KillTimeout = 0 } else { yyv56 := &x.KillTimeout yym57 := z.DecBinary() _ = yym57 if false { } else if z.HasExtensions() && z.DecExt(yyv56) { } else { *((*int64)(yyv56)) = int64(r.DecodeInt(64)) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.LogConfig != nil { x.LogConfig = nil } } else { if x.LogConfig == nil { x.LogConfig = new(LogConfig) } x.LogConfig.CodecDecodeSelf(d) } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Artifacts = nil } else { yyv59 := &x.Artifacts yym60 := z.DecBinary() _ = yym60 if false { } else { h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(yyv59), d) } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Leader = false } else { yyv61 := &x.Leader yym62 := z.DecBinary() _ = yym62 if false { } else { *((*bool)(yyv61)) = r.DecodeBool() } } yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ShutdownDelay = 0 } else { yyv63 := &x.ShutdownDelay yym64 := z.DecBinary() _ = yym64 if false { } else if z.HasExtensions() && z.DecExt(yyv63) { } else { *((*int64)(yyv63)) = int64(r.DecodeInt(64)) } } for { yyj34++ if yyhl34 { yyb34 = yyj34 > l } else { yyb34 = r.CheckBreak() } if yyb34 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj34-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Template) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [11]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(11) } else { yynn2 = 11 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SourcePath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SourcePath")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SourcePath)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DestPath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DestPath")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DestPath)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EmbeddedTmpl)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EmbeddedTmpl")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EmbeddedTmpl)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeMode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ChangeMode")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeMode)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeSignal)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ChangeSignal")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeSignal)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else if z.HasExtensions() && z.EncExt(x.Splay) { } else { r.EncodeInt(int64(x.Splay)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Splay")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else if z.HasExtensions() && z.EncExt(x.Splay) { } else { r.EncodeInt(int64(x.Splay)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Perms)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Perms")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Perms)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.LeftDelim)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LeftDelim")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.LeftDelim)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RightDelim)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RightDelim")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RightDelim)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeBool(bool(x.Envvars)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Envvars")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeBool(bool(x.Envvars)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else if z.HasExtensions() && z.EncExt(x.VaultGrace) { } else { r.EncodeInt(int64(x.VaultGrace)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("VaultGrace")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else if z.HasExtensions() && z.EncExt(x.VaultGrace) { } else { r.EncodeInt(int64(x.VaultGrace)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Template) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Template) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "SourcePath": if r.TryDecodeAsNil() { x.SourcePath = "" } else { yyv4 := &x.SourcePath yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "DestPath": if r.TryDecodeAsNil() { x.DestPath = "" } else { yyv6 := &x.DestPath yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "EmbeddedTmpl": if r.TryDecodeAsNil() { x.EmbeddedTmpl = "" } else { yyv8 := &x.EmbeddedTmpl yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "ChangeMode": if r.TryDecodeAsNil() { x.ChangeMode = "" } else { yyv10 := &x.ChangeMode yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "ChangeSignal": if r.TryDecodeAsNil() { x.ChangeSignal = "" } else { yyv12 := &x.ChangeSignal yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "Splay": if r.TryDecodeAsNil() { x.Splay = 0 } else { yyv14 := &x.Splay yym15 := z.DecBinary() _ = yym15 if false { } else if z.HasExtensions() && z.DecExt(yyv14) { } else { *((*int64)(yyv14)) = int64(r.DecodeInt(64)) } } case "Perms": if r.TryDecodeAsNil() { x.Perms = "" } else { yyv16 := &x.Perms yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "LeftDelim": if r.TryDecodeAsNil() { x.LeftDelim = "" } else { yyv18 := &x.LeftDelim yym19 := z.DecBinary() _ = yym19 if false { } else { *((*string)(yyv18)) = r.DecodeString() } } case "RightDelim": if r.TryDecodeAsNil() { x.RightDelim = "" } else { yyv20 := &x.RightDelim yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } case "Envvars": if r.TryDecodeAsNil() { x.Envvars = false } else { yyv22 := &x.Envvars yym23 := z.DecBinary() _ = yym23 if false { } else { *((*bool)(yyv22)) = r.DecodeBool() } } case "VaultGrace": if r.TryDecodeAsNil() { x.VaultGrace = 0 } else { yyv24 := &x.VaultGrace yym25 := z.DecBinary() _ = yym25 if false { } else if z.HasExtensions() && z.DecExt(yyv24) { } else { *((*int64)(yyv24)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Template) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SourcePath = "" } else { yyv27 := &x.SourcePath yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DestPath = "" } else { yyv29 := &x.DestPath yym30 := z.DecBinary() _ = yym30 if false { } else { *((*string)(yyv29)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EmbeddedTmpl = "" } else { yyv31 := &x.EmbeddedTmpl yym32 := z.DecBinary() _ = yym32 if false { } else { *((*string)(yyv31)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ChangeMode = "" } else { yyv33 := &x.ChangeMode yym34 := z.DecBinary() _ = yym34 if false { } else { *((*string)(yyv33)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ChangeSignal = "" } else { yyv35 := &x.ChangeSignal yym36 := z.DecBinary() _ = yym36 if false { } else { *((*string)(yyv35)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Splay = 0 } else { yyv37 := &x.Splay yym38 := z.DecBinary() _ = yym38 if false { } else if z.HasExtensions() && z.DecExt(yyv37) { } else { *((*int64)(yyv37)) = int64(r.DecodeInt(64)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Perms = "" } else { yyv39 := &x.Perms yym40 := z.DecBinary() _ = yym40 if false { } else { *((*string)(yyv39)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LeftDelim = "" } else { yyv41 := &x.LeftDelim yym42 := z.DecBinary() _ = yym42 if false { } else { *((*string)(yyv41)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RightDelim = "" } else { yyv43 := &x.RightDelim yym44 := z.DecBinary() _ = yym44 if false { } else { *((*string)(yyv43)) = r.DecodeString() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Envvars = false } else { yyv45 := &x.Envvars yym46 := z.DecBinary() _ = yym46 if false { } else { *((*bool)(yyv45)) = r.DecodeBool() } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.VaultGrace = 0 } else { yyv47 := &x.VaultGrace yym48 := z.DecBinary() _ = yym48 if false { } else if z.HasExtensions() && z.DecExt(yyv47) { } else { *((*int64)(yyv47)) = int64(r.DecodeInt(64)) } } for { yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *TaskState) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.State)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("State")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.State)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Failed)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Failed")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Failed)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Restarts)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Restarts")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Restarts)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy13 := &x.LastRestart yym14 := z.EncBinary() _ = yym14 if false { } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { r.EncodeBuiltin(yym15, yy13) } else if z.HasExtensions() && z.EncExt(yy13) { } else if yym14 { z.EncBinaryMarshal(yy13) } else if !yym14 && z.IsJSONHandle() { z.EncJSONMarshal(yy13) } else { z.EncFallback(yy13) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LastRestart")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yy16 := &x.LastRestart yym17 := z.EncBinary() _ = yym17 if false { } else if yym18 := z.TimeRtidIfBinc(); yym18 != 0 { r.EncodeBuiltin(yym18, yy16) } else if z.HasExtensions() && z.EncExt(yy16) { } else if yym17 { z.EncBinaryMarshal(yy16) } else if !yym17 && z.IsJSONHandle() { z.EncJSONMarshal(yy16) } else { z.EncFallback(yy16) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy20 := &x.StartedAt yym21 := z.EncBinary() _ = yym21 if false { } else if yym22 := z.TimeRtidIfBinc(); yym22 != 0 { r.EncodeBuiltin(yym22, yy20) } else if z.HasExtensions() && z.EncExt(yy20) { } else if yym21 { z.EncBinaryMarshal(yy20) } else if !yym21 && z.IsJSONHandle() { z.EncJSONMarshal(yy20) } else { z.EncFallback(yy20) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StartedAt")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yy23 := &x.StartedAt yym24 := z.EncBinary() _ = yym24 if false { } else if yym25 := z.TimeRtidIfBinc(); yym25 != 0 { r.EncodeBuiltin(yym25, yy23) } else if z.HasExtensions() && z.EncExt(yy23) { } else if yym24 { z.EncBinaryMarshal(yy23) } else if !yym24 && z.IsJSONHandle() { z.EncJSONMarshal(yy23) } else { z.EncFallback(yy23) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy27 := &x.FinishedAt yym28 := z.EncBinary() _ = yym28 if false { } else if yym29 := z.TimeRtidIfBinc(); yym29 != 0 { r.EncodeBuiltin(yym29, yy27) } else if z.HasExtensions() && z.EncExt(yy27) { } else if yym28 { z.EncBinaryMarshal(yy27) } else if !yym28 && z.IsJSONHandle() { z.EncJSONMarshal(yy27) } else { z.EncFallback(yy27) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("FinishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yy30 := &x.FinishedAt yym31 := z.EncBinary() _ = yym31 if false { } else if yym32 := z.TimeRtidIfBinc(); yym32 != 0 { r.EncodeBuiltin(yym32, yy30) } else if z.HasExtensions() && z.EncExt(yy30) { } else if yym31 { z.EncBinaryMarshal(yy30) } else if !yym31 && z.IsJSONHandle() { z.EncJSONMarshal(yy30) } else { z.EncFallback(yy30) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Events == nil { r.EncodeNil() } else { yym34 := z.EncBinary() _ = yym34 if false { } else { h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Events")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Events == nil { r.EncodeNil() } else { yym35 := z.EncBinary() _ = yym35 if false { } else { h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *TaskState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *TaskState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "State": if r.TryDecodeAsNil() { x.State = "" } else { yyv4 := &x.State yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Failed": if r.TryDecodeAsNil() { x.Failed = false } else { yyv6 := &x.Failed yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "Restarts": if r.TryDecodeAsNil() { x.Restarts = 0 } else { yyv8 := &x.Restarts yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "LastRestart": if r.TryDecodeAsNil() { x.LastRestart = time.Time{} } else { yyv10 := &x.LastRestart yym11 := z.DecBinary() _ = yym11 if false { } else if yym12 := z.TimeRtidIfBinc(); yym12 != 0 { r.DecodeBuiltin(yym12, yyv10) } else if z.HasExtensions() && z.DecExt(yyv10) { } else if yym11 { z.DecBinaryUnmarshal(yyv10) } else if !yym11 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv10) } else { z.DecFallback(yyv10, false) } } case "StartedAt": if r.TryDecodeAsNil() { x.StartedAt = time.Time{} } else { yyv13 := &x.StartedAt yym14 := z.DecBinary() _ = yym14 if false { } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { r.DecodeBuiltin(yym15, yyv13) } else if z.HasExtensions() && z.DecExt(yyv13) { } else if yym14 { z.DecBinaryUnmarshal(yyv13) } else if !yym14 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv13) } else { z.DecFallback(yyv13, false) } } case "FinishedAt": if r.TryDecodeAsNil() { x.FinishedAt = time.Time{} } else { yyv16 := &x.FinishedAt yym17 := z.DecBinary() _ = yym17 if false { } else if yym18 := z.TimeRtidIfBinc(); yym18 != 0 { r.DecodeBuiltin(yym18, yyv16) } else if z.HasExtensions() && z.DecExt(yyv16) { } else if yym17 { z.DecBinaryUnmarshal(yyv16) } else if !yym17 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv16) } else { z.DecFallback(yyv16, false) } } case "Events": if r.TryDecodeAsNil() { x.Events = nil } else { yyv19 := &x.Events yym20 := z.DecBinary() _ = yym20 if false { } else { h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(yyv19), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *TaskState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.State = "" } else { yyv22 := &x.State yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Failed = false } else { yyv24 := &x.Failed yym25 := z.DecBinary() _ = yym25 if false { } else { *((*bool)(yyv24)) = r.DecodeBool() } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Restarts = 0 } else { yyv26 := &x.Restarts yym27 := z.DecBinary() _ = yym27 if false { } else { *((*uint64)(yyv26)) = uint64(r.DecodeUint(64)) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LastRestart = time.Time{} } else { yyv28 := &x.LastRestart yym29 := z.DecBinary() _ = yym29 if false { } else if yym30 := z.TimeRtidIfBinc(); yym30 != 0 { r.DecodeBuiltin(yym30, yyv28) } else if z.HasExtensions() && z.DecExt(yyv28) { } else if yym29 { z.DecBinaryUnmarshal(yyv28) } else if !yym29 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv28) } else { z.DecFallback(yyv28, false) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StartedAt = time.Time{} } else { yyv31 := &x.StartedAt yym32 := z.DecBinary() _ = yym32 if false { } else if yym33 := z.TimeRtidIfBinc(); yym33 != 0 { r.DecodeBuiltin(yym33, yyv31) } else if z.HasExtensions() && z.DecExt(yyv31) { } else if yym32 { z.DecBinaryUnmarshal(yyv31) } else if !yym32 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv31) } else { z.DecFallback(yyv31, false) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.FinishedAt = time.Time{} } else { yyv34 := &x.FinishedAt yym35 := z.DecBinary() _ = yym35 if false { } else if yym36 := z.TimeRtidIfBinc(); yym36 != 0 { r.DecodeBuiltin(yym36, yyv34) } else if z.HasExtensions() && z.DecExt(yyv34) { } else if yym35 { z.DecBinaryUnmarshal(yyv34) } else if !yym35 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv34) } else { z.DecFallback(yyv34, false) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Events = nil } else { yyv37 := &x.Events yym38 := z.DecBinary() _ = yym38 if false { } else { h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(yyv37), d) } } for { yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj21-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *TaskEvent) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [22]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(22) } else { yynn2 = 22 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Type")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.Time)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Time")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.Time)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeBool(bool(x.FailsTask)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("FailsTask")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeBool(bool(x.FailsTask)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RestartReason)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RestartReason")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RestartReason)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SetupError)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SetupError")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.SetupError)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DriverError)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DriverError")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DriverError)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ExitCode")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Signal")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeInt(int64(x.Signal)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Message)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Message")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Message)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { } else { r.EncodeInt(int64(x.KillTimeout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KillTimeout")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { } else { r.EncodeInt(int64(x.KillTimeout)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.KillError)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KillError")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.KillError)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym37 := z.EncBinary() _ = yym37 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.KillReason)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("KillReason")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym38 := z.EncBinary() _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.KillReason)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym40 := z.EncBinary() _ = yym40 if false { } else { r.EncodeInt(int64(x.StartDelay)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StartDelay")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym41 := z.EncBinary() _ = yym41 if false { } else { r.EncodeInt(int64(x.StartDelay)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym43 := z.EncBinary() _ = yym43 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DownloadError)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DownloadError")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym44 := z.EncBinary() _ = yym44 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DownloadError)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym46 := z.EncBinary() _ = yym46 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ValidationError)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ValidationError")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym47 := z.EncBinary() _ = yym47 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ValidationError)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym49 := z.EncBinary() _ = yym49 if false { } else { r.EncodeInt(int64(x.DiskLimit)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DiskLimit")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym50 := z.EncBinary() _ = yym50 if false { } else { r.EncodeInt(int64(x.DiskLimit)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym52 := z.EncBinary() _ = yym52 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.FailedSibling)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("FailedSibling")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym53 := z.EncBinary() _ = yym53 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.FailedSibling)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym55 := z.EncBinary() _ = yym55 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.VaultError)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("VaultError")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym56 := z.EncBinary() _ = yym56 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.VaultError)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym58 := z.EncBinary() _ = yym58 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskSignalReason)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskSignalReason")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym59 := z.EncBinary() _ = yym59 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskSignalReason)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym61 := z.EncBinary() _ = yym61 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskSignal)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskSignal")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym62 := z.EncBinary() _ = yym62 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskSignal)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym64 := z.EncBinary() _ = yym64 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DriverMessage)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DriverMessage")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym65 := z.EncBinary() _ = yym65 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DriverMessage)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym67 := z.EncBinary() _ = yym67 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.GenericSource)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("GenericSource")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym68 := z.EncBinary() _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.GenericSource)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *TaskEvent) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *TaskEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { yyv4 := &x.Type yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Time": if r.TryDecodeAsNil() { x.Time = 0 } else { yyv6 := &x.Time yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int64)(yyv6)) = int64(r.DecodeInt(64)) } } case "FailsTask": if r.TryDecodeAsNil() { x.FailsTask = false } else { yyv8 := &x.FailsTask yym9 := z.DecBinary() _ = yym9 if false { } else { *((*bool)(yyv8)) = r.DecodeBool() } } case "RestartReason": if r.TryDecodeAsNil() { x.RestartReason = "" } else { yyv10 := &x.RestartReason yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "SetupError": if r.TryDecodeAsNil() { x.SetupError = "" } else { yyv12 := &x.SetupError yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "DriverError": if r.TryDecodeAsNil() { x.DriverError = "" } else { yyv14 := &x.DriverError yym15 := z.DecBinary() _ = yym15 if false { } else { *((*string)(yyv14)) = r.DecodeString() } } case "ExitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 } else { yyv16 := &x.ExitCode yym17 := z.DecBinary() _ = yym17 if false { } else { *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Signal": if r.TryDecodeAsNil() { x.Signal = 0 } else { yyv18 := &x.Signal yym19 := z.DecBinary() _ = yym19 if false { } else { *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Message": if r.TryDecodeAsNil() { x.Message = "" } else { yyv20 := &x.Message yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } case "KillTimeout": if r.TryDecodeAsNil() { x.KillTimeout = 0 } else { yyv22 := &x.KillTimeout yym23 := z.DecBinary() _ = yym23 if false { } else if z.HasExtensions() && z.DecExt(yyv22) { } else { *((*int64)(yyv22)) = int64(r.DecodeInt(64)) } } case "KillError": if r.TryDecodeAsNil() { x.KillError = "" } else { yyv24 := &x.KillError yym25 := z.DecBinary() _ = yym25 if false { } else { *((*string)(yyv24)) = r.DecodeString() } } case "KillReason": if r.TryDecodeAsNil() { x.KillReason = "" } else { yyv26 := &x.KillReason yym27 := z.DecBinary() _ = yym27 if false { } else { *((*string)(yyv26)) = r.DecodeString() } } case "StartDelay": if r.TryDecodeAsNil() { x.StartDelay = 0 } else { yyv28 := &x.StartDelay yym29 := z.DecBinary() _ = yym29 if false { } else { *((*int64)(yyv28)) = int64(r.DecodeInt(64)) } } case "DownloadError": if r.TryDecodeAsNil() { x.DownloadError = "" } else { yyv30 := &x.DownloadError yym31 := z.DecBinary() _ = yym31 if false { } else { *((*string)(yyv30)) = r.DecodeString() } } case "ValidationError": if r.TryDecodeAsNil() { x.ValidationError = "" } else { yyv32 := &x.ValidationError yym33 := z.DecBinary() _ = yym33 if false { } else { *((*string)(yyv32)) = r.DecodeString() } } case "DiskLimit": if r.TryDecodeAsNil() { x.DiskLimit = 0 } else { yyv34 := &x.DiskLimit yym35 := z.DecBinary() _ = yym35 if false { } else { *((*int64)(yyv34)) = int64(r.DecodeInt(64)) } } case "FailedSibling": if r.TryDecodeAsNil() { x.FailedSibling = "" } else { yyv36 := &x.FailedSibling yym37 := z.DecBinary() _ = yym37 if false { } else { *((*string)(yyv36)) = r.DecodeString() } } case "VaultError": if r.TryDecodeAsNil() { x.VaultError = "" } else { yyv38 := &x.VaultError yym39 := z.DecBinary() _ = yym39 if false { } else { *((*string)(yyv38)) = r.DecodeString() } } case "TaskSignalReason": if r.TryDecodeAsNil() { x.TaskSignalReason = "" } else { yyv40 := &x.TaskSignalReason yym41 := z.DecBinary() _ = yym41 if false { } else { *((*string)(yyv40)) = r.DecodeString() } } case "TaskSignal": if r.TryDecodeAsNil() { x.TaskSignal = "" } else { yyv42 := &x.TaskSignal yym43 := z.DecBinary() _ = yym43 if false { } else { *((*string)(yyv42)) = r.DecodeString() } } case "DriverMessage": if r.TryDecodeAsNil() { x.DriverMessage = "" } else { yyv44 := &x.DriverMessage yym45 := z.DecBinary() _ = yym45 if false { } else { *((*string)(yyv44)) = r.DecodeString() } } case "GenericSource": if r.TryDecodeAsNil() { x.GenericSource = "" } else { yyv46 := &x.GenericSource yym47 := z.DecBinary() _ = yym47 if false { } else { *((*string)(yyv46)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *TaskEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj48 int var yyb48 bool var yyhl48 bool = l >= 0 yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Type = "" } else { yyv49 := &x.Type yym50 := z.DecBinary() _ = yym50 if false { } else { *((*string)(yyv49)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Time = 0 } else { yyv51 := &x.Time yym52 := z.DecBinary() _ = yym52 if false { } else { *((*int64)(yyv51)) = int64(r.DecodeInt(64)) } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.FailsTask = false } else { yyv53 := &x.FailsTask yym54 := z.DecBinary() _ = yym54 if false { } else { *((*bool)(yyv53)) = r.DecodeBool() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RestartReason = "" } else { yyv55 := &x.RestartReason yym56 := z.DecBinary() _ = yym56 if false { } else { *((*string)(yyv55)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SetupError = "" } else { yyv57 := &x.SetupError yym58 := z.DecBinary() _ = yym58 if false { } else { *((*string)(yyv57)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DriverError = "" } else { yyv59 := &x.DriverError yym60 := z.DecBinary() _ = yym60 if false { } else { *((*string)(yyv59)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { yyv61 := &x.ExitCode yym62 := z.DecBinary() _ = yym62 if false { } else { *((*int)(yyv61)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Signal = 0 } else { yyv63 := &x.Signal yym64 := z.DecBinary() _ = yym64 if false { } else { *((*int)(yyv63)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Message = "" } else { yyv65 := &x.Message yym66 := z.DecBinary() _ = yym66 if false { } else { *((*string)(yyv65)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KillTimeout = 0 } else { yyv67 := &x.KillTimeout yym68 := z.DecBinary() _ = yym68 if false { } else if z.HasExtensions() && z.DecExt(yyv67) { } else { *((*int64)(yyv67)) = int64(r.DecodeInt(64)) } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KillError = "" } else { yyv69 := &x.KillError yym70 := z.DecBinary() _ = yym70 if false { } else { *((*string)(yyv69)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.KillReason = "" } else { yyv71 := &x.KillReason yym72 := z.DecBinary() _ = yym72 if false { } else { *((*string)(yyv71)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StartDelay = 0 } else { yyv73 := &x.StartDelay yym74 := z.DecBinary() _ = yym74 if false { } else { *((*int64)(yyv73)) = int64(r.DecodeInt(64)) } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DownloadError = "" } else { yyv75 := &x.DownloadError yym76 := z.DecBinary() _ = yym76 if false { } else { *((*string)(yyv75)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ValidationError = "" } else { yyv77 := &x.ValidationError yym78 := z.DecBinary() _ = yym78 if false { } else { *((*string)(yyv77)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DiskLimit = 0 } else { yyv79 := &x.DiskLimit yym80 := z.DecBinary() _ = yym80 if false { } else { *((*int64)(yyv79)) = int64(r.DecodeInt(64)) } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.FailedSibling = "" } else { yyv81 := &x.FailedSibling yym82 := z.DecBinary() _ = yym82 if false { } else { *((*string)(yyv81)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.VaultError = "" } else { yyv83 := &x.VaultError yym84 := z.DecBinary() _ = yym84 if false { } else { *((*string)(yyv83)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskSignalReason = "" } else { yyv85 := &x.TaskSignalReason yym86 := z.DecBinary() _ = yym86 if false { } else { *((*string)(yyv85)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskSignal = "" } else { yyv87 := &x.TaskSignal yym88 := z.DecBinary() _ = yym88 if false { } else { *((*string)(yyv87)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DriverMessage = "" } else { yyv89 := &x.DriverMessage yym90 := z.DecBinary() _ = yym90 if false { } else { *((*string)(yyv89)) = r.DecodeString() } } yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.GenericSource = "" } else { yyv91 := &x.GenericSource yym92 := z.DecBinary() _ = yym92 if false { } else { *((*string)(yyv91)) = r.DecodeString() } } for { yyj48++ if yyhl48 { yyb48 = yyj48 > l } else { yyb48 = r.CheckBreak() } if yyb48 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj48-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *TaskArtifact) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.GetterSource)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("GetterSource")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.GetterSource)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.GetterOptions == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncMapStringStringV(x.GetterOptions, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("GetterOptions")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.GetterOptions == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncMapStringStringV(x.GetterOptions, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.GetterMode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("GetterMode")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.GetterMode)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RelativeDest)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RelativeDest")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RelativeDest)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *TaskArtifact) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *TaskArtifact) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "GetterSource": if r.TryDecodeAsNil() { x.GetterSource = "" } else { yyv4 := &x.GetterSource yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "GetterOptions": if r.TryDecodeAsNil() { x.GetterOptions = nil } else { yyv6 := &x.GetterOptions yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecMapStringStringX(yyv6, false, d) } } case "GetterMode": if r.TryDecodeAsNil() { x.GetterMode = "" } else { yyv8 := &x.GetterMode yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "RelativeDest": if r.TryDecodeAsNil() { x.RelativeDest = "" } else { yyv10 := &x.RelativeDest yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *TaskArtifact) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.GetterSource = "" } else { yyv13 := &x.GetterSource yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.GetterOptions = nil } else { yyv15 := &x.GetterOptions yym16 := z.DecBinary() _ = yym16 if false { } else { z.F.DecMapStringStringX(yyv15, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.GetterMode = "" } else { yyv17 := &x.GetterMode yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RelativeDest = "" } else { yyv19 := &x.RelativeDest yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Constraint) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.LTarget)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("LTarget")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.LTarget)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RTarget)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RTarget")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.RTarget)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Operand)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Operand")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Operand)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Constraint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Constraint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "LTarget": if r.TryDecodeAsNil() { x.LTarget = "" } else { yyv4 := &x.LTarget yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "RTarget": if r.TryDecodeAsNil() { x.RTarget = "" } else { yyv6 := &x.RTarget yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Operand": if r.TryDecodeAsNil() { x.Operand = "" } else { yyv8 := &x.Operand yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Constraint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.LTarget = "" } else { yyv11 := &x.LTarget yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RTarget = "" } else { yyv13 := &x.RTarget yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Operand = "" } else { yyv15 := &x.Operand yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *EphemeralDisk) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeBool(bool(x.Sticky)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Sticky")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeBool(bool(x.Sticky)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.SizeMB)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SizeMB")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.SizeMB)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeBool(bool(x.Migrate)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Migrate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeBool(bool(x.Migrate)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *EphemeralDisk) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *EphemeralDisk) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Sticky": if r.TryDecodeAsNil() { x.Sticky = false } else { yyv4 := &x.Sticky yym5 := z.DecBinary() _ = yym5 if false { } else { *((*bool)(yyv4)) = r.DecodeBool() } } case "SizeMB": if r.TryDecodeAsNil() { x.SizeMB = 0 } else { yyv6 := &x.SizeMB yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Migrate": if r.TryDecodeAsNil() { x.Migrate = false } else { yyv8 := &x.Migrate yym9 := z.DecBinary() _ = yym9 if false { } else { *((*bool)(yyv8)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *EphemeralDisk) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Sticky = false } else { yyv11 := &x.Sticky yym12 := z.DecBinary() _ = yym12 if false { } else { *((*bool)(yyv11)) = r.DecodeBool() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SizeMB = 0 } else { yyv13 := &x.SizeMB yym14 := z.DecBinary() _ = yym14 if false { } else { *((*int)(yyv13)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Migrate = false } else { yyv15 := &x.Migrate yym16 := z.DecBinary() _ = yym16 if false { } else { *((*bool)(yyv15)) = r.DecodeBool() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Vault) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Policies == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncSliceStringV(x.Policies, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Policies")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Policies == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncSliceStringV(x.Policies, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Env)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Env")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Env)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeMode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ChangeMode")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeMode)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeSignal)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ChangeSignal")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ChangeSignal)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Vault) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Vault) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Policies": if r.TryDecodeAsNil() { x.Policies = nil } else { yyv4 := &x.Policies yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } case "Env": if r.TryDecodeAsNil() { x.Env = false } else { yyv6 := &x.Env yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "ChangeMode": if r.TryDecodeAsNil() { x.ChangeMode = "" } else { yyv8 := &x.ChangeMode yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "ChangeSignal": if r.TryDecodeAsNil() { x.ChangeSignal = "" } else { yyv10 := &x.ChangeSignal yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Vault) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Policies = nil } else { yyv13 := &x.Policies yym14 := z.DecBinary() _ = yym14 if false { } else { z.F.DecSliceStringX(yyv13, false, d) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Env = false } else { yyv15 := &x.Env yym16 := z.DecBinary() _ = yym16 if false { } else { *((*bool)(yyv15)) = r.DecodeBool() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ChangeMode = "" } else { yyv17 := &x.ChangeMode yym18 := z.DecBinary() _ = yym18 if false { } else { *((*string)(yyv17)) = r.DecodeString() } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ChangeSignal = "" } else { yyv19 := &x.ChangeSignal yym20 := z.DecBinary() _ = yym20 if false { } else { *((*string)(yyv19)) = r.DecodeString() } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [10]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(10) } else { yynn2 = 10 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(x.JobCreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobCreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.JobCreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.TaskGroups == nil { r.EncodeNil() } else { yym19 := z.EncBinary() _ = yym19 if false { } else { h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskGroups")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.TaskGroups == nil { r.EncodeNil() } else { yym20 := z.EncBinary() _ = yym20 if false { } else { h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv6 := &x.JobID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "JobVersion": if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv8 := &x.JobVersion yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv10 := &x.JobModifyIndex yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "JobCreateIndex": if r.TryDecodeAsNil() { x.JobCreateIndex = 0 } else { yyv12 := &x.JobCreateIndex yym13 := z.DecBinary() _ = yym13 if false { } else { *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) } } case "TaskGroups": if r.TryDecodeAsNil() { x.TaskGroups = nil } else { yyv14 := &x.TaskGroups yym15 := z.DecBinary() _ = yym15 if false { } else { h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(yyv14), d) } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv16 := &x.Status yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv18 := &x.StatusDescription yym19 := z.DecBinary() _ = yym19 if false { } else { *((*string)(yyv18)) = r.DecodeString() } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv20 := &x.CreateIndex yym21 := z.DecBinary() _ = yym21 if false { } else { *((*uint64)(yyv20)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv22 := &x.ModifyIndex yym23 := z.DecBinary() _ = yym23 if false { } else { *((*uint64)(yyv22)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj24 int var yyb24 bool var yyhl24 bool = l >= 0 yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv25 := &x.ID yym26 := z.DecBinary() _ = yym26 if false { } else { *((*string)(yyv25)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv27 := &x.JobID yym28 := z.DecBinary() _ = yym28 if false { } else { *((*string)(yyv27)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv29 := &x.JobVersion yym30 := z.DecBinary() _ = yym30 if false { } else { *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv31 := &x.JobModifyIndex yym32 := z.DecBinary() _ = yym32 if false { } else { *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobCreateIndex = 0 } else { yyv33 := &x.JobCreateIndex yym34 := z.DecBinary() _ = yym34 if false { } else { *((*uint64)(yyv33)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskGroups = nil } else { yyv35 := &x.TaskGroups yym36 := z.DecBinary() _ = yym36 if false { } else { h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(yyv35), d) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv37 := &x.Status yym38 := z.DecBinary() _ = yym38 if false { } else { *((*string)(yyv37)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv39 := &x.StatusDescription yym40 := z.DecBinary() _ = yym40 if false { } else { *((*string)(yyv39)) = r.DecodeString() } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv41 := &x.CreateIndex yym42 := z.DecBinary() _ = yym42 if false { } else { *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) } } yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv43 := &x.ModifyIndex yym44 := z.DecBinary() _ = yym44 if false { } else { *((*uint64)(yyv43)) = uint64(r.DecodeUint(64)) } } for { yyj24++ if yyhl24 { yyb24 = yyj24 > l } else { yyb24 = r.CheckBreak() } if yyb24 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj24-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentState) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [8]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(8) } else { yynn2 = 8 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeBool(bool(x.AutoRevert)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AutoRevert")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeBool(bool(x.AutoRevert)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Promoted)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Promoted")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Promoted)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.PlacedCanaries == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncSliceStringV(x.PlacedCanaries, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("PlacedCanaries")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.PlacedCanaries == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncSliceStringV(x.PlacedCanaries, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeInt(int64(x.DesiredCanaries)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredCanaries")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeInt(int64(x.DesiredCanaries)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeInt(int64(x.DesiredTotal)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredTotal")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeInt(int64(x.DesiredTotal)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeInt(int64(x.PlacedAllocs)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("PlacedAllocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeInt(int64(x.PlacedAllocs)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeInt(int64(x.HealthyAllocs)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("HealthyAllocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeInt(int64(x.HealthyAllocs)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeInt(int64(x.UnhealthyAllocs)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("UnhealthyAllocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeInt(int64(x.UnhealthyAllocs)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "AutoRevert": if r.TryDecodeAsNil() { x.AutoRevert = false } else { yyv4 := &x.AutoRevert yym5 := z.DecBinary() _ = yym5 if false { } else { *((*bool)(yyv4)) = r.DecodeBool() } } case "Promoted": if r.TryDecodeAsNil() { x.Promoted = false } else { yyv6 := &x.Promoted yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } case "PlacedCanaries": if r.TryDecodeAsNil() { x.PlacedCanaries = nil } else { yyv8 := &x.PlacedCanaries yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } case "DesiredCanaries": if r.TryDecodeAsNil() { x.DesiredCanaries = 0 } else { yyv10 := &x.DesiredCanaries yym11 := z.DecBinary() _ = yym11 if false { } else { *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "DesiredTotal": if r.TryDecodeAsNil() { x.DesiredTotal = 0 } else { yyv12 := &x.DesiredTotal yym13 := z.DecBinary() _ = yym13 if false { } else { *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "PlacedAllocs": if r.TryDecodeAsNil() { x.PlacedAllocs = 0 } else { yyv14 := &x.PlacedAllocs yym15 := z.DecBinary() _ = yym15 if false { } else { *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "HealthyAllocs": if r.TryDecodeAsNil() { x.HealthyAllocs = 0 } else { yyv16 := &x.HealthyAllocs yym17 := z.DecBinary() _ = yym17 if false { } else { *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "UnhealthyAllocs": if r.TryDecodeAsNil() { x.UnhealthyAllocs = 0 } else { yyv18 := &x.UnhealthyAllocs yym19 := z.DecBinary() _ = yym19 if false { } else { *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AutoRevert = false } else { yyv21 := &x.AutoRevert yym22 := z.DecBinary() _ = yym22 if false { } else { *((*bool)(yyv21)) = r.DecodeBool() } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Promoted = false } else { yyv23 := &x.Promoted yym24 := z.DecBinary() _ = yym24 if false { } else { *((*bool)(yyv23)) = r.DecodeBool() } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.PlacedCanaries = nil } else { yyv25 := &x.PlacedCanaries yym26 := z.DecBinary() _ = yym26 if false { } else { z.F.DecSliceStringX(yyv25, false, d) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredCanaries = 0 } else { yyv27 := &x.DesiredCanaries yym28 := z.DecBinary() _ = yym28 if false { } else { *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredTotal = 0 } else { yyv29 := &x.DesiredTotal yym30 := z.DecBinary() _ = yym30 if false { } else { *((*int)(yyv29)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.PlacedAllocs = 0 } else { yyv31 := &x.PlacedAllocs yym32 := z.DecBinary() _ = yym32 if false { } else { *((*int)(yyv31)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.HealthyAllocs = 0 } else { yyv33 := &x.HealthyAllocs yym34 := z.DecBinary() _ = yym34 if false { } else { *((*int)(yyv33)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.UnhealthyAllocs = 0 } else { yyv35 := &x.UnhealthyAllocs yym36 := z.DecBinary() _ = yym36 if false { } else { *((*int)(yyv35)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj20++ if yyhl20 { yyb20 = yyj20 > l } else { yyb20 = r.CheckBreak() } if yyb20 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj20-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DeploymentStatusUpdate) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DeploymentStatusUpdate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DeploymentStatusUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv4 := &x.DeploymentID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv6 := &x.Status yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv8 := &x.StatusDescription yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DeploymentStatusUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv11 := &x.DeploymentID yym12 := z.DecBinary() _ = yym12 if false { } else { *((*string)(yyv11)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv13 := &x.Status yym14 := z.DecBinary() _ = yym14 if false { } else { *((*string)(yyv13)) = r.DecodeString() } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv15 := &x.StatusDescription yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Allocation) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [23]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(23) } else { yynn2 = 23 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskGroup)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskGroup")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskGroup)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Resources == nil { r.EncodeNil() } else { x.Resources.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Resources")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Resources == nil { r.EncodeNil() } else { x.Resources.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.SharedResources == nil { r.EncodeNil() } else { x.SharedResources.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SharedResources")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.SharedResources == nil { r.EncodeNil() } else { x.SharedResources.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.TaskResources == nil { r.EncodeNil() } else { yym31 := z.EncBinary() _ = yym31 if false { } else { h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskResources")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.TaskResources == nil { r.EncodeNil() } else { yym32 := z.EncBinary() _ = yym32 if false { } else { h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Metrics == nil { r.EncodeNil() } else { x.Metrics.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Metrics")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Metrics == nil { r.EncodeNil() } else { x.Metrics.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym37 := z.EncBinary() _ = yym37 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredStatus)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym38 := z.EncBinary() _ = yym38 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredStatus)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym40 := z.EncBinary() _ = yym40 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym41 := z.EncBinary() _ = yym41 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym43 := z.EncBinary() _ = yym43 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientStatus)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClientStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym44 := z.EncBinary() _ = yym44 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientStatus)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym46 := z.EncBinary() _ = yym46 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClientDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym47 := z.EncBinary() _ = yym47 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.TaskStates == nil { r.EncodeNil() } else { yym49 := z.EncBinary() _ = yym49 if false { } else { h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskStates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.TaskStates == nil { r.EncodeNil() } else { yym50 := z.EncBinary() _ = yym50 if false { } else { h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym52 := z.EncBinary() _ = yym52 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PreviousAllocation)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("PreviousAllocation")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym53 := z.EncBinary() _ = yym53 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PreviousAllocation)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym55 := z.EncBinary() _ = yym55 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym56 := z.EncBinary() _ = yym56 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentStatus == nil { r.EncodeNil() } else { x.DeploymentStatus.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentStatus == nil { r.EncodeNil() } else { x.DeploymentStatus.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym61 := z.EncBinary() _ = yym61 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym62 := z.EncBinary() _ = yym62 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym64 := z.EncBinary() _ = yym64 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym65 := z.EncBinary() _ = yym65 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym67 := z.EncBinary() _ = yym67 if false { } else { r.EncodeUint(uint64(x.AllocModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym68 := z.EncBinary() _ = yym68 if false { } else { r.EncodeUint(uint64(x.AllocModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym70 := z.EncBinary() _ = yym70 if false { } else { r.EncodeInt(int64(x.CreateTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym71 := z.EncBinary() _ = yym71 if false { } else { r.EncodeInt(int64(x.CreateTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Allocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Allocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv6 := &x.EvalID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv8 := &x.Name yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv10 := &x.NodeID yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv12 := &x.JobID yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "Job": if r.TryDecodeAsNil() { if 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 { yyv15 := &x.TaskGroup yym16 := z.DecBinary() _ = yym16 if false { } else { *((*string)(yyv15)) = r.DecodeString() } } case "Resources": if r.TryDecodeAsNil() { if 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 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 { yyv19 := &x.TaskResources yym20 := z.DecBinary() _ = yym20 if false { } else { h.decMapstringPtrtoResources((*map[string]*Resources)(yyv19), d) } } case "Metrics": if r.TryDecodeAsNil() { if 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 { yyv22 := &x.DesiredStatus yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } case "DesiredDescription": if r.TryDecodeAsNil() { x.DesiredDescription = "" } else { yyv24 := &x.DesiredDescription yym25 := z.DecBinary() _ = yym25 if false { } else { *((*string)(yyv24)) = r.DecodeString() } } case "ClientStatus": if r.TryDecodeAsNil() { x.ClientStatus = "" } else { yyv26 := &x.ClientStatus yym27 := z.DecBinary() _ = yym27 if false { } else { *((*string)(yyv26)) = r.DecodeString() } } case "ClientDescription": if r.TryDecodeAsNil() { x.ClientDescription = "" } else { yyv28 := &x.ClientDescription yym29 := z.DecBinary() _ = yym29 if false { } else { *((*string)(yyv28)) = r.DecodeString() } } case "TaskStates": if r.TryDecodeAsNil() { x.TaskStates = nil } else { yyv30 := &x.TaskStates yym31 := z.DecBinary() _ = yym31 if false { } else { h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv30), d) } } case "PreviousAllocation": if r.TryDecodeAsNil() { x.PreviousAllocation = "" } else { yyv32 := &x.PreviousAllocation yym33 := z.DecBinary() _ = yym33 if false { } else { *((*string)(yyv32)) = r.DecodeString() } } case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv34 := &x.DeploymentID yym35 := z.DecBinary() _ = yym35 if false { } else { *((*string)(yyv34)) = r.DecodeString() } } case "DeploymentStatus": if r.TryDecodeAsNil() { if x.DeploymentStatus != nil { x.DeploymentStatus = nil } } else { if x.DeploymentStatus == nil { x.DeploymentStatus = new(AllocDeploymentStatus) } x.DeploymentStatus.CodecDecodeSelf(d) } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv37 := &x.CreateIndex yym38 := z.DecBinary() _ = yym38 if false { } else { *((*uint64)(yyv37)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv39 := &x.ModifyIndex yym40 := z.DecBinary() _ = yym40 if false { } else { *((*uint64)(yyv39)) = uint64(r.DecodeUint(64)) } } case "AllocModifyIndex": if r.TryDecodeAsNil() { x.AllocModifyIndex = 0 } else { yyv41 := &x.AllocModifyIndex yym42 := z.DecBinary() _ = yym42 if false { } else { *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) } } case "CreateTime": if r.TryDecodeAsNil() { x.CreateTime = 0 } else { yyv43 := &x.CreateTime yym44 := z.DecBinary() _ = yym44 if false { } else { *((*int64)(yyv43)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Allocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj45 int var yyb45 bool var yyhl45 bool = l >= 0 yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv46 := &x.ID yym47 := z.DecBinary() _ = yym47 if false { } else { *((*string)(yyv46)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv48 := &x.EvalID yym49 := z.DecBinary() _ = yym49 if false { } else { *((*string)(yyv48)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv50 := &x.Name yym51 := z.DecBinary() _ = yym51 if false { } else { *((*string)(yyv50)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv52 := &x.NodeID yym53 := z.DecBinary() _ = yym53 if false { } else { *((*string)(yyv52)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv54 := &x.JobID yym55 := z.DecBinary() _ = yym55 if false { } else { *((*string)(yyv54)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Job != nil { x.Job = nil } } else { if x.Job == nil { x.Job = new(Job) } x.Job.CodecDecodeSelf(d) } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskGroup = "" } else { yyv57 := &x.TaskGroup yym58 := z.DecBinary() _ = yym58 if false { } else { *((*string)(yyv57)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Resources != nil { x.Resources = nil } } else { if x.Resources == nil { x.Resources = new(Resources) } x.Resources.CodecDecodeSelf(d) } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.SharedResources != nil { x.SharedResources = nil } } else { if x.SharedResources == nil { x.SharedResources = new(Resources) } x.SharedResources.CodecDecodeSelf(d) } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskResources = nil } else { yyv61 := &x.TaskResources yym62 := z.DecBinary() _ = yym62 if false { } else { h.decMapstringPtrtoResources((*map[string]*Resources)(yyv61), d) } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Metrics != nil { x.Metrics = nil } } else { if x.Metrics == nil { x.Metrics = new(AllocMetric) } x.Metrics.CodecDecodeSelf(d) } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredStatus = "" } else { yyv64 := &x.DesiredStatus yym65 := z.DecBinary() _ = yym65 if false { } else { *((*string)(yyv64)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredDescription = "" } else { yyv66 := &x.DesiredDescription yym67 := z.DecBinary() _ = yym67 if false { } else { *((*string)(yyv66)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClientStatus = "" } else { yyv68 := &x.ClientStatus yym69 := z.DecBinary() _ = yym69 if false { } else { *((*string)(yyv68)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClientDescription = "" } else { yyv70 := &x.ClientDescription yym71 := z.DecBinary() _ = yym71 if false { } else { *((*string)(yyv70)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskStates = nil } else { yyv72 := &x.TaskStates yym73 := z.DecBinary() _ = yym73 if false { } else { h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv72), d) } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.PreviousAllocation = "" } else { yyv74 := &x.PreviousAllocation yym75 := z.DecBinary() _ = yym75 if false { } else { *((*string)(yyv74)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv76 := &x.DeploymentID yym77 := z.DecBinary() _ = yym77 if false { } else { *((*string)(yyv76)) = r.DecodeString() } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.DeploymentStatus != nil { x.DeploymentStatus = nil } } else { if x.DeploymentStatus == nil { x.DeploymentStatus = new(AllocDeploymentStatus) } x.DeploymentStatus.CodecDecodeSelf(d) } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv79 := &x.CreateIndex yym80 := z.DecBinary() _ = yym80 if false { } else { *((*uint64)(yyv79)) = uint64(r.DecodeUint(64)) } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv81 := &x.ModifyIndex yym82 := z.DecBinary() _ = yym82 if false { } else { *((*uint64)(yyv81)) = uint64(r.DecodeUint(64)) } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocModifyIndex = 0 } else { yyv83 := &x.AllocModifyIndex yym84 := z.DecBinary() _ = yym84 if false { } else { *((*uint64)(yyv83)) = uint64(r.DecodeUint(64)) } } yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateTime = 0 } else { yyv85 := &x.CreateTime yym86 := z.DecBinary() _ = yym86 if false { } else { *((*int64)(yyv85)) = int64(r.DecodeInt(64)) } } for { yyj45++ if yyhl45 { yyb45 = yyj45 > l } else { yyb45 = r.CheckBreak() } if yyb45 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj45-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocListStub) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [16]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(16) } else { yynn2 = 16 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Name)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobVersion")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.JobVersion)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskGroup)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskGroup")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TaskGroup)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredStatus)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredStatus)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DesiredDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientStatus)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClientStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientStatus)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClientDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ClientDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.TaskStates == nil { r.EncodeNil() } else { yym37 := z.EncBinary() _ = yym37 if false { } else { h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TaskStates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.TaskStates == nil { r.EncodeNil() } else { yym38 := z.EncBinary() _ = yym38 if false { } else { h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentStatus == nil { r.EncodeNil() } else { x.DeploymentStatus.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentStatus")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentStatus == nil { r.EncodeNil() } else { x.DeploymentStatus.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym43 := z.EncBinary() _ = yym43 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym44 := z.EncBinary() _ = yym44 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym46 := z.EncBinary() _ = yym46 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym47 := z.EncBinary() _ = yym47 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym49 := z.EncBinary() _ = yym49 if false { } else { r.EncodeInt(int64(x.CreateTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym50 := z.EncBinary() _ = yym50 if false { } else { r.EncodeInt(int64(x.CreateTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocListStub) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv6 := &x.EvalID yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { yyv8 := &x.Name yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv10 := &x.NodeID yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv12 := &x.JobID yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "JobVersion": if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv14 := &x.JobVersion yym15 := z.DecBinary() _ = yym15 if false { } else { *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) } } case "TaskGroup": if r.TryDecodeAsNil() { x.TaskGroup = "" } else { yyv16 := &x.TaskGroup yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "DesiredStatus": if r.TryDecodeAsNil() { x.DesiredStatus = "" } else { yyv18 := &x.DesiredStatus yym19 := z.DecBinary() _ = yym19 if false { } else { *((*string)(yyv18)) = r.DecodeString() } } case "DesiredDescription": if r.TryDecodeAsNil() { x.DesiredDescription = "" } else { yyv20 := &x.DesiredDescription yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } case "ClientStatus": if r.TryDecodeAsNil() { x.ClientStatus = "" } else { yyv22 := &x.ClientStatus yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } case "ClientDescription": if r.TryDecodeAsNil() { x.ClientDescription = "" } else { yyv24 := &x.ClientDescription yym25 := z.DecBinary() _ = yym25 if false { } else { *((*string)(yyv24)) = r.DecodeString() } } case "TaskStates": if r.TryDecodeAsNil() { x.TaskStates = nil } else { yyv26 := &x.TaskStates yym27 := z.DecBinary() _ = yym27 if false { } else { h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv26), d) } } case "DeploymentStatus": if r.TryDecodeAsNil() { if x.DeploymentStatus != nil { x.DeploymentStatus = nil } } else { if x.DeploymentStatus == nil { x.DeploymentStatus = new(AllocDeploymentStatus) } x.DeploymentStatus.CodecDecodeSelf(d) } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv29 := &x.CreateIndex yym30 := z.DecBinary() _ = yym30 if false { } else { *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv31 := &x.ModifyIndex yym32 := z.DecBinary() _ = yym32 if false { } else { *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) } } case "CreateTime": if r.TryDecodeAsNil() { x.CreateTime = 0 } else { yyv33 := &x.CreateTime yym34 := z.DecBinary() _ = yym34 if false { } else { *((*int64)(yyv33)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj35 int var yyb35 bool var yyhl35 bool = l >= 0 yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv36 := &x.ID yym37 := z.DecBinary() _ = yym37 if false { } else { *((*string)(yyv36)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv38 := &x.EvalID yym39 := z.DecBinary() _ = yym39 if false { } else { *((*string)(yyv38)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Name = "" } else { yyv40 := &x.Name yym41 := z.DecBinary() _ = yym41 if false { } else { *((*string)(yyv40)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv42 := &x.NodeID yym43 := z.DecBinary() _ = yym43 if false { } else { *((*string)(yyv42)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv44 := &x.JobID yym45 := z.DecBinary() _ = yym45 if false { } else { *((*string)(yyv44)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobVersion = 0 } else { yyv46 := &x.JobVersion yym47 := z.DecBinary() _ = yym47 if false { } else { *((*uint64)(yyv46)) = uint64(r.DecodeUint(64)) } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskGroup = "" } else { yyv48 := &x.TaskGroup yym49 := z.DecBinary() _ = yym49 if false { } else { *((*string)(yyv48)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredStatus = "" } else { yyv50 := &x.DesiredStatus yym51 := z.DecBinary() _ = yym51 if false { } else { *((*string)(yyv50)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredDescription = "" } else { yyv52 := &x.DesiredDescription yym53 := z.DecBinary() _ = yym53 if false { } else { *((*string)(yyv52)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClientStatus = "" } else { yyv54 := &x.ClientStatus yym55 := z.DecBinary() _ = yym55 if false { } else { *((*string)(yyv54)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClientDescription = "" } else { yyv56 := &x.ClientDescription yym57 := z.DecBinary() _ = yym57 if false { } else { *((*string)(yyv56)) = r.DecodeString() } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TaskStates = nil } else { yyv58 := &x.TaskStates yym59 := z.DecBinary() _ = yym59 if false { } else { h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv58), d) } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.DeploymentStatus != nil { x.DeploymentStatus = nil } } else { if x.DeploymentStatus == nil { x.DeploymentStatus = new(AllocDeploymentStatus) } x.DeploymentStatus.CodecDecodeSelf(d) } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv61 := &x.CreateIndex yym62 := z.DecBinary() _ = yym62 if false { } else { *((*uint64)(yyv61)) = uint64(r.DecodeUint(64)) } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv63 := &x.ModifyIndex yym64 := z.DecBinary() _ = yym64 if false { } else { *((*uint64)(yyv63)) = uint64(r.DecodeUint(64)) } } yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateTime = 0 } else { yyv65 := &x.CreateTime yym66 := z.DecBinary() _ = yym66 if false { } else { *((*int64)(yyv65)) = int64(r.DecodeInt(64)) } } for { yyj35++ if yyhl35 { yyb35 = yyj35 > l } else { yyb35 = r.CheckBreak() } if yyb35 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj35-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocMetric) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [11]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(11) } else { yynn2 = 11 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeInt(int64(x.NodesEvaluated)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodesEvaluated")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeInt(int64(x.NodesEvaluated)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.NodesFiltered)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodesFiltered")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.NodesFiltered)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.NodesAvailable == nil { r.EncodeNil() } else { yym10 := z.EncBinary() _ = yym10 if false { } else { z.F.EncMapStringIntV(x.NodesAvailable, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodesAvailable")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.NodesAvailable == nil { r.EncodeNil() } else { yym11 := z.EncBinary() _ = yym11 if false { } else { z.F.EncMapStringIntV(x.NodesAvailable, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ClassFiltered == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { z.F.EncMapStringIntV(x.ClassFiltered, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClassFiltered")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ClassFiltered == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { z.F.EncMapStringIntV(x.ClassFiltered, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ConstraintFiltered == nil { r.EncodeNil() } else { yym16 := z.EncBinary() _ = yym16 if false { } else { z.F.EncMapStringIntV(x.ConstraintFiltered, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ConstraintFiltered")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ConstraintFiltered == nil { r.EncodeNil() } else { yym17 := z.EncBinary() _ = yym17 if false { } else { z.F.EncMapStringIntV(x.ConstraintFiltered, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeInt(int64(x.NodesExhausted)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodesExhausted")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeInt(int64(x.NodesExhausted)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ClassExhausted == nil { r.EncodeNil() } else { yym22 := z.EncBinary() _ = yym22 if false { } else { z.F.EncMapStringIntV(x.ClassExhausted, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClassExhausted")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ClassExhausted == nil { r.EncodeNil() } else { yym23 := z.EncBinary() _ = yym23 if false { } else { z.F.EncMapStringIntV(x.ClassExhausted, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DimensionExhausted == nil { r.EncodeNil() } else { yym25 := z.EncBinary() _ = yym25 if false { } else { z.F.EncMapStringIntV(x.DimensionExhausted, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DimensionExhausted")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DimensionExhausted == nil { r.EncodeNil() } else { yym26 := z.EncBinary() _ = yym26 if false { } else { z.F.EncMapStringIntV(x.DimensionExhausted, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Scores == nil { r.EncodeNil() } else { yym28 := z.EncBinary() _ = yym28 if false { } else { z.F.EncMapStringFloat64V(x.Scores, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Scores")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Scores == nil { r.EncodeNil() } else { yym29 := z.EncBinary() _ = yym29 if false { } else { z.F.EncMapStringFloat64V(x.Scores, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else if z.HasExtensions() && z.EncExt(x.AllocationTime) { } else { r.EncodeInt(int64(x.AllocationTime)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocationTime")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else if z.HasExtensions() && z.EncExt(x.AllocationTime) { } else { r.EncodeInt(int64(x.AllocationTime)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeInt(int64(x.CoalescedFailures)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CoalescedFailures")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else { r.EncodeInt(int64(x.CoalescedFailures)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocMetric) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocMetric) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodesEvaluated": if r.TryDecodeAsNil() { x.NodesEvaluated = 0 } else { yyv4 := &x.NodesEvaluated yym5 := z.DecBinary() _ = yym5 if false { } else { *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "NodesFiltered": if r.TryDecodeAsNil() { x.NodesFiltered = 0 } else { yyv6 := &x.NodesFiltered yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "NodesAvailable": if r.TryDecodeAsNil() { x.NodesAvailable = nil } else { yyv8 := &x.NodesAvailable yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecMapStringIntX(yyv8, false, d) } } case "ClassFiltered": if r.TryDecodeAsNil() { x.ClassFiltered = nil } else { yyv10 := &x.ClassFiltered yym11 := z.DecBinary() _ = yym11 if false { } else { z.F.DecMapStringIntX(yyv10, false, d) } } case "ConstraintFiltered": if r.TryDecodeAsNil() { x.ConstraintFiltered = nil } else { yyv12 := &x.ConstraintFiltered yym13 := z.DecBinary() _ = yym13 if false { } else { z.F.DecMapStringIntX(yyv12, false, d) } } case "NodesExhausted": if r.TryDecodeAsNil() { x.NodesExhausted = 0 } else { yyv14 := &x.NodesExhausted yym15 := z.DecBinary() _ = yym15 if false { } else { *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "ClassExhausted": if r.TryDecodeAsNil() { x.ClassExhausted = nil } else { yyv16 := &x.ClassExhausted yym17 := z.DecBinary() _ = yym17 if false { } else { z.F.DecMapStringIntX(yyv16, false, d) } } case "DimensionExhausted": if r.TryDecodeAsNil() { x.DimensionExhausted = nil } else { yyv18 := &x.DimensionExhausted yym19 := z.DecBinary() _ = yym19 if false { } else { z.F.DecMapStringIntX(yyv18, false, d) } } case "Scores": if r.TryDecodeAsNil() { x.Scores = nil } else { yyv20 := &x.Scores yym21 := z.DecBinary() _ = yym21 if false { } else { z.F.DecMapStringFloat64X(yyv20, false, d) } } case "AllocationTime": if r.TryDecodeAsNil() { x.AllocationTime = 0 } else { yyv22 := &x.AllocationTime yym23 := z.DecBinary() _ = yym23 if false { } else if z.HasExtensions() && z.DecExt(yyv22) { } else { *((*int64)(yyv22)) = int64(r.DecodeInt(64)) } } case "CoalescedFailures": if r.TryDecodeAsNil() { x.CoalescedFailures = 0 } else { yyv24 := &x.CoalescedFailures yym25 := z.DecBinary() _ = yym25 if false { } else { *((*int)(yyv24)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocMetric) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodesEvaluated = 0 } else { yyv27 := &x.NodesEvaluated yym28 := z.DecBinary() _ = yym28 if false { } else { *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodesFiltered = 0 } else { yyv29 := &x.NodesFiltered yym30 := z.DecBinary() _ = yym30 if false { } else { *((*int)(yyv29)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodesAvailable = nil } else { yyv31 := &x.NodesAvailable yym32 := z.DecBinary() _ = yym32 if false { } else { z.F.DecMapStringIntX(yyv31, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClassFiltered = nil } else { yyv33 := &x.ClassFiltered yym34 := z.DecBinary() _ = yym34 if false { } else { z.F.DecMapStringIntX(yyv33, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ConstraintFiltered = nil } else { yyv35 := &x.ConstraintFiltered yym36 := z.DecBinary() _ = yym36 if false { } else { z.F.DecMapStringIntX(yyv35, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodesExhausted = 0 } else { yyv37 := &x.NodesExhausted yym38 := z.DecBinary() _ = yym38 if false { } else { *((*int)(yyv37)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClassExhausted = nil } else { yyv39 := &x.ClassExhausted yym40 := z.DecBinary() _ = yym40 if false { } else { z.F.DecMapStringIntX(yyv39, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DimensionExhausted = nil } else { yyv41 := &x.DimensionExhausted yym42 := z.DecBinary() _ = yym42 if false { } else { z.F.DecMapStringIntX(yyv41, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Scores = nil } else { yyv43 := &x.Scores yym44 := z.DecBinary() _ = yym44 if false { } else { z.F.DecMapStringFloat64X(yyv43, false, d) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocationTime = 0 } else { yyv45 := &x.AllocationTime yym46 := z.DecBinary() _ = yym46 if false { } else if z.HasExtensions() && z.DecExt(yyv45) { } else { *((*int64)(yyv45)) = int64(r.DecodeInt(64)) } } yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CoalescedFailures = 0 } else { yyv47 := &x.CoalescedFailures yym48 := z.DecBinary() _ = yym48 if false { } else { *((*int)(yyv47)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj26++ if yyhl26 { yyb26 = yyj26 > l } else { yyb26 = r.CheckBreak() } if yyb26 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj26-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *AllocDeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Healthy == nil { r.EncodeNil() } else { yy4 := *x.Healthy yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeBool(bool(yy4)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Healthy")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Healthy == nil { r.EncodeNil() } else { yy6 := *x.Healthy yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(yy6)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym9 := z.EncBinary() _ = yym9 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *AllocDeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *AllocDeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Healthy": if r.TryDecodeAsNil() { if x.Healthy != nil { x.Healthy = nil } } else { if x.Healthy == nil { x.Healthy = new(bool) } yym5 := z.DecBinary() _ = yym5 if false { } else { *((*bool)(x.Healthy)) = r.DecodeBool() } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv6 := &x.ModifyIndex yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *AllocDeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Healthy != nil { x.Healthy = nil } } else { if x.Healthy == nil { x.Healthy = new(bool) } yym10 := z.DecBinary() _ = yym10 if false { } else { *((*bool)(x.Healthy)) = r.DecodeBool() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv11 := &x.ModifyIndex yym12 := z.DecBinary() _ = yym12 if false { } else { *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Evaluation) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [23]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(23) } else { yynn2 = 23 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.ID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeInt(int64(x.Priority)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Priority")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeInt(int64(x.Priority)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Type")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Type)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TriggeredBy)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("TriggeredBy")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.TriggeredBy)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.JobID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("JobModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.JobModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NodeID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym25 := z.EncBinary() _ = yym25 if false { } else { r.EncodeUint(uint64(x.NodeModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym26 := z.EncBinary() _ = yym26 if false { } else { r.EncodeUint(uint64(x.NodeModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym28 := z.EncBinary() _ = yym28 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym29 := z.EncBinary() _ = yym29 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.DeploymentID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym31 := z.EncBinary() _ = yym31 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym32 := z.EncBinary() _ = yym32 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Status)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("StatusDescription")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym35 := z.EncBinary() _ = yym35 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.StatusDescription)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym37 := z.EncBinary() _ = yym37 if false { } else if z.HasExtensions() && z.EncExt(x.Wait) { } else { r.EncodeInt(int64(x.Wait)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Wait")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym38 := z.EncBinary() _ = yym38 if false { } else if z.HasExtensions() && z.EncExt(x.Wait) { } else { r.EncodeInt(int64(x.Wait)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym40 := z.EncBinary() _ = yym40 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NextEval)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NextEval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym41 := z.EncBinary() _ = yym41 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.NextEval)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym43 := z.EncBinary() _ = yym43 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PreviousEval)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("PreviousEval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym44 := z.EncBinary() _ = yym44 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.PreviousEval)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym46 := z.EncBinary() _ = yym46 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.BlockedEval)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("BlockedEval")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym47 := z.EncBinary() _ = yym47 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.BlockedEval)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.FailedTGAllocs == nil { r.EncodeNil() } else { yym49 := z.EncBinary() _ = yym49 if false { } else { h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("FailedTGAllocs")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.FailedTGAllocs == nil { r.EncodeNil() } else { yym50 := z.EncBinary() _ = yym50 if false { } else { h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.ClassEligibility == nil { r.EncodeNil() } else { yym52 := z.EncBinary() _ = yym52 if false { } else { z.F.EncMapStringBoolV(x.ClassEligibility, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ClassEligibility")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.ClassEligibility == nil { r.EncodeNil() } else { yym53 := z.EncBinary() _ = yym53 if false { } else { z.F.EncMapStringBoolV(x.ClassEligibility, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym55 := z.EncBinary() _ = yym55 if false { } else { r.EncodeBool(bool(x.EscapedComputedClass)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EscapedComputedClass")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym56 := z.EncBinary() _ = yym56 if false { } else { r.EncodeBool(bool(x.EscapedComputedClass)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym58 := z.EncBinary() _ = yym58 if false { } else { r.EncodeBool(bool(x.AnnotatePlan)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AnnotatePlan")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym59 := z.EncBinary() _ = yym59 if false { } else { r.EncodeBool(bool(x.AnnotatePlan)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.QueuedAllocations == nil { r.EncodeNil() } else { yym61 := z.EncBinary() _ = yym61 if false { } else { z.F.EncMapStringIntV(x.QueuedAllocations, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("QueuedAllocations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.QueuedAllocations == nil { r.EncodeNil() } else { yym62 := z.EncBinary() _ = yym62 if false { } else { z.F.EncMapStringIntV(x.QueuedAllocations, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym64 := z.EncBinary() _ = yym64 if false { } else { r.EncodeUint(uint64(x.SnapshotIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("SnapshotIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym65 := z.EncBinary() _ = yym65 if false { } else { r.EncodeUint(uint64(x.SnapshotIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym67 := z.EncBinary() _ = yym67 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("CreateIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym68 := z.EncBinary() _ = yym68 if false { } else { r.EncodeUint(uint64(x.CreateIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym70 := z.EncBinary() _ = yym70 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("ModifyIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym71 := z.EncBinary() _ = yym71 if false { } else { r.EncodeUint(uint64(x.ModifyIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Evaluation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Evaluation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { yyv4 := &x.ID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Priority": if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv6 := &x.Priority yym7 := z.DecBinary() _ = yym7 if false { } else { *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { yyv8 := &x.Type yym9 := z.DecBinary() _ = yym9 if false { } else { *((*string)(yyv8)) = r.DecodeString() } } case "TriggeredBy": if r.TryDecodeAsNil() { x.TriggeredBy = "" } else { yyv10 := &x.TriggeredBy yym11 := z.DecBinary() _ = yym11 if false { } else { *((*string)(yyv10)) = r.DecodeString() } } case "JobID": if r.TryDecodeAsNil() { x.JobID = "" } else { yyv12 := &x.JobID yym13 := z.DecBinary() _ = yym13 if false { } else { *((*string)(yyv12)) = r.DecodeString() } } case "JobModifyIndex": if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv14 := &x.JobModifyIndex yym15 := z.DecBinary() _ = yym15 if false { } else { *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) } } case "NodeID": if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv16 := &x.NodeID yym17 := z.DecBinary() _ = yym17 if false { } else { *((*string)(yyv16)) = r.DecodeString() } } case "NodeModifyIndex": if r.TryDecodeAsNil() { x.NodeModifyIndex = 0 } else { yyv18 := &x.NodeModifyIndex yym19 := z.DecBinary() _ = yym19 if false { } else { *((*uint64)(yyv18)) = uint64(r.DecodeUint(64)) } } case "DeploymentID": if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv20 := &x.DeploymentID yym21 := z.DecBinary() _ = yym21 if false { } else { *((*string)(yyv20)) = r.DecodeString() } } case "Status": if r.TryDecodeAsNil() { x.Status = "" } else { yyv22 := &x.Status yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } case "StatusDescription": if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv24 := &x.StatusDescription yym25 := z.DecBinary() _ = yym25 if false { } else { *((*string)(yyv24)) = r.DecodeString() } } case "Wait": if r.TryDecodeAsNil() { x.Wait = 0 } else { yyv26 := &x.Wait yym27 := z.DecBinary() _ = yym27 if false { } else if z.HasExtensions() && z.DecExt(yyv26) { } else { *((*int64)(yyv26)) = int64(r.DecodeInt(64)) } } case "NextEval": if r.TryDecodeAsNil() { x.NextEval = "" } else { yyv28 := &x.NextEval yym29 := z.DecBinary() _ = yym29 if false { } else { *((*string)(yyv28)) = r.DecodeString() } } case "PreviousEval": if r.TryDecodeAsNil() { x.PreviousEval = "" } else { yyv30 := &x.PreviousEval yym31 := z.DecBinary() _ = yym31 if false { } else { *((*string)(yyv30)) = r.DecodeString() } } case "BlockedEval": if r.TryDecodeAsNil() { x.BlockedEval = "" } else { yyv32 := &x.BlockedEval yym33 := z.DecBinary() _ = yym33 if false { } else { *((*string)(yyv32)) = r.DecodeString() } } case "FailedTGAllocs": if r.TryDecodeAsNil() { x.FailedTGAllocs = nil } else { yyv34 := &x.FailedTGAllocs yym35 := z.DecBinary() _ = yym35 if false { } else { h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv34), d) } } case "ClassEligibility": if r.TryDecodeAsNil() { x.ClassEligibility = nil } else { yyv36 := &x.ClassEligibility yym37 := z.DecBinary() _ = yym37 if false { } else { z.F.DecMapStringBoolX(yyv36, false, d) } } case "EscapedComputedClass": if r.TryDecodeAsNil() { x.EscapedComputedClass = false } else { yyv38 := &x.EscapedComputedClass yym39 := z.DecBinary() _ = yym39 if false { } else { *((*bool)(yyv38)) = r.DecodeBool() } } case "AnnotatePlan": if r.TryDecodeAsNil() { x.AnnotatePlan = false } else { yyv40 := &x.AnnotatePlan yym41 := z.DecBinary() _ = yym41 if false { } else { *((*bool)(yyv40)) = r.DecodeBool() } } case "QueuedAllocations": if r.TryDecodeAsNil() { x.QueuedAllocations = nil } else { yyv42 := &x.QueuedAllocations yym43 := z.DecBinary() _ = yym43 if false { } else { z.F.DecMapStringIntX(yyv42, false, d) } } case "SnapshotIndex": if r.TryDecodeAsNil() { x.SnapshotIndex = 0 } else { yyv44 := &x.SnapshotIndex yym45 := z.DecBinary() _ = yym45 if false { } else { *((*uint64)(yyv44)) = uint64(r.DecodeUint(64)) } } case "CreateIndex": if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv46 := &x.CreateIndex yym47 := z.DecBinary() _ = yym47 if false { } else { *((*uint64)(yyv46)) = uint64(r.DecodeUint(64)) } } case "ModifyIndex": if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv48 := &x.ModifyIndex yym49 := z.DecBinary() _ = yym49 if false { } else { *((*uint64)(yyv48)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Evaluation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj50 int var yyb50 bool var yyhl50 bool = l >= 0 yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ID = "" } else { yyv51 := &x.ID yym52 := z.DecBinary() _ = yym52 if false { } else { *((*string)(yyv51)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv53 := &x.Priority yym54 := z.DecBinary() _ = yym54 if false { } else { *((*int)(yyv53)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Type = "" } else { yyv55 := &x.Type yym56 := z.DecBinary() _ = yym56 if false { } else { *((*string)(yyv55)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.TriggeredBy = "" } else { yyv57 := &x.TriggeredBy yym58 := z.DecBinary() _ = yym58 if false { } else { *((*string)(yyv57)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobID = "" } else { yyv59 := &x.JobID yym60 := z.DecBinary() _ = yym60 if false { } else { *((*string)(yyv59)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.JobModifyIndex = 0 } else { yyv61 := &x.JobModifyIndex yym62 := z.DecBinary() _ = yym62 if false { } else { *((*uint64)(yyv61)) = uint64(r.DecodeUint(64)) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeID = "" } else { yyv63 := &x.NodeID yym64 := z.DecBinary() _ = yym64 if false { } else { *((*string)(yyv63)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeModifyIndex = 0 } else { yyv65 := &x.NodeModifyIndex yym66 := z.DecBinary() _ = yym66 if false { } else { *((*uint64)(yyv65)) = uint64(r.DecodeUint(64)) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentID = "" } else { yyv67 := &x.DeploymentID yym68 := z.DecBinary() _ = yym68 if false { } else { *((*string)(yyv67)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Status = "" } else { yyv69 := &x.Status yym70 := z.DecBinary() _ = yym70 if false { } else { *((*string)(yyv69)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.StatusDescription = "" } else { yyv71 := &x.StatusDescription yym72 := z.DecBinary() _ = yym72 if false { } else { *((*string)(yyv71)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Wait = 0 } else { yyv73 := &x.Wait yym74 := z.DecBinary() _ = yym74 if false { } else if z.HasExtensions() && z.DecExt(yyv73) { } else { *((*int64)(yyv73)) = int64(r.DecodeInt(64)) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NextEval = "" } else { yyv75 := &x.NextEval yym76 := z.DecBinary() _ = yym76 if false { } else { *((*string)(yyv75)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.PreviousEval = "" } else { yyv77 := &x.PreviousEval yym78 := z.DecBinary() _ = yym78 if false { } else { *((*string)(yyv77)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.BlockedEval = "" } else { yyv79 := &x.BlockedEval yym80 := z.DecBinary() _ = yym80 if false { } else { *((*string)(yyv79)) = r.DecodeString() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.FailedTGAllocs = nil } else { yyv81 := &x.FailedTGAllocs yym82 := z.DecBinary() _ = yym82 if false { } else { h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv81), d) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ClassEligibility = nil } else { yyv83 := &x.ClassEligibility yym84 := z.DecBinary() _ = yym84 if false { } else { z.F.DecMapStringBoolX(yyv83, false, d) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EscapedComputedClass = false } else { yyv85 := &x.EscapedComputedClass yym86 := z.DecBinary() _ = yym86 if false { } else { *((*bool)(yyv85)) = r.DecodeBool() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AnnotatePlan = false } else { yyv87 := &x.AnnotatePlan yym88 := z.DecBinary() _ = yym88 if false { } else { *((*bool)(yyv87)) = r.DecodeBool() } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.QueuedAllocations = nil } else { yyv89 := &x.QueuedAllocations yym90 := z.DecBinary() _ = yym90 if false { } else { z.F.DecMapStringIntX(yyv89, false, d) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.SnapshotIndex = 0 } else { yyv91 := &x.SnapshotIndex yym92 := z.DecBinary() _ = yym92 if false { } else { *((*uint64)(yyv91)) = uint64(r.DecodeUint(64)) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.CreateIndex = 0 } else { yyv93 := &x.CreateIndex yym94 := z.DecBinary() _ = yym94 if false { } else { *((*uint64)(yyv93)) = uint64(r.DecodeUint(64)) } } yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.ModifyIndex = 0 } else { yyv95 := &x.ModifyIndex yym96 := z.DecBinary() _ = yym96 if false { } else { *((*uint64)(yyv95)) = uint64(r.DecodeUint(64)) } } for { yyj50++ if yyhl50 { yyb50 = yyj50 > l } else { yyb50 = r.CheckBreak() } if yyb50 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj50-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *Plan) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [10]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(10) } else { yynn2 = 10 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalID")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalToken)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("EvalToken")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.EvalToken)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeInt(int64(x.Priority)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Priority")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeInt(int64(x.Priority)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeBool(bool(x.AllAtOnce)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllAtOnce")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeBool(bool(x.AllAtOnce)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Job")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Job == nil { r.EncodeNil() } else { x.Job.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.NodeUpdate == nil { r.EncodeNil() } else { yym19 := z.EncBinary() _ = yym19 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.NodeUpdate == nil { r.EncodeNil() } else { yym20 := z.EncBinary() _ = yym20 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.NodeAllocation == nil { r.EncodeNil() } else { yym22 := z.EncBinary() _ = yym22 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeAllocation")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.NodeAllocation == nil { r.EncodeNil() } else { yym23 := z.EncBinary() _ = yym23 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Annotations == nil { r.EncodeNil() } else { x.Annotations.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Annotations")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Annotations == nil { r.EncodeNil() } else { x.Annotations.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Deployment")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentUpdates == nil { r.EncodeNil() } else { yym31 := z.EncBinary() _ = yym31 if false { } else { h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentUpdates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentUpdates == nil { r.EncodeNil() } else { yym32 := z.EncBinary() _ = yym32 if false { } else { h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *Plan) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *Plan) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "EvalID": if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv4 := &x.EvalID yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "EvalToken": if r.TryDecodeAsNil() { x.EvalToken = "" } else { yyv6 := &x.EvalToken yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } case "Priority": if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv8 := &x.Priority yym9 := z.DecBinary() _ = yym9 if false { } else { *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize5247)) } } case "AllAtOnce": if r.TryDecodeAsNil() { x.AllAtOnce = false } else { yyv10 := &x.AllAtOnce yym11 := z.DecBinary() _ = yym11 if false { } else { *((*bool)(yyv10)) = r.DecodeBool() } } case "Job": if r.TryDecodeAsNil() { if 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 { yyv13 := &x.NodeUpdate yym14 := z.DecBinary() _ = yym14 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv13), d) } } case "NodeAllocation": if r.TryDecodeAsNil() { x.NodeAllocation = nil } else { yyv15 := &x.NodeAllocation yym16 := z.DecBinary() _ = yym16 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv15), d) } } case "Annotations": if r.TryDecodeAsNil() { if 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 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 { yyv19 := &x.DeploymentUpdates yym20 := z.DecBinary() _ = yym20 if false { } else { h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv19), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *Plan) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalID = "" } else { yyv22 := &x.EvalID yym23 := z.DecBinary() _ = yym23 if false { } else { *((*string)(yyv22)) = r.DecodeString() } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.EvalToken = "" } else { yyv24 := &x.EvalToken yym25 := z.DecBinary() _ = yym25 if false { } else { *((*string)(yyv24)) = r.DecodeString() } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Priority = 0 } else { yyv26 := &x.Priority yym27 := z.DecBinary() _ = yym27 if false { } else { *((*int)(yyv26)) = int(r.DecodeInt(codecSelferBitsize5247)) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllAtOnce = false } else { yyv28 := &x.AllAtOnce yym29 := z.DecBinary() _ = yym29 if false { } else { *((*bool)(yyv28)) = r.DecodeBool() } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Job != nil { x.Job = nil } } else { if x.Job == nil { x.Job = new(Job) } x.Job.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeUpdate = nil } else { yyv31 := &x.NodeUpdate yym32 := z.DecBinary() _ = yym32 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv31), d) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeAllocation = nil } else { yyv33 := &x.NodeAllocation yym34 := z.DecBinary() _ = yym34 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv33), d) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Annotations != nil { x.Annotations = nil } } else { if x.Annotations == nil { x.Annotations = new(PlanAnnotations) } x.Annotations.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if x.Deployment != nil { x.Deployment = nil } } else { if x.Deployment == nil { x.Deployment = new(Deployment) } x.Deployment.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentUpdates = nil } else { yyv37 := &x.DeploymentUpdates yym38 := z.DecBinary() _ = yym38 if false { } else { h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv37), d) } } for { yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj21-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PlanResult) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(6) } else { yynn2 = 6 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.NodeUpdate == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.NodeUpdate == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.NodeAllocation == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NodeAllocation")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.NodeAllocation == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Deployment")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Deployment == nil { r.EncodeNil() } else { x.Deployment.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DeploymentUpdates == nil { r.EncodeNil() } else { yym13 := z.EncBinary() _ = yym13 if false { } else { h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DeploymentUpdates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DeploymentUpdates == nil { r.EncodeNil() } else { yym14 := z.EncBinary() _ = yym14 if false { } else { h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(x.RefreshIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("RefreshIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.RefreshIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.AllocIndex)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("AllocIndex")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.AllocIndex)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PlanResult) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PlanResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "NodeUpdate": if r.TryDecodeAsNil() { x.NodeUpdate = nil } else { yyv4 := &x.NodeUpdate yym5 := z.DecBinary() _ = yym5 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv4), d) } } case "NodeAllocation": if r.TryDecodeAsNil() { x.NodeAllocation = nil } else { yyv6 := &x.NodeAllocation yym7 := z.DecBinary() _ = yym7 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv6), d) } } case "Deployment": if r.TryDecodeAsNil() { if 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 { yyv9 := &x.DeploymentUpdates yym10 := z.DecBinary() _ = yym10 if false { } else { h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv9), d) } } case "RefreshIndex": if r.TryDecodeAsNil() { x.RefreshIndex = 0 } else { yyv11 := &x.RefreshIndex yym12 := z.DecBinary() _ = yym12 if false { } else { *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) } } case "AllocIndex": if r.TryDecodeAsNil() { x.AllocIndex = 0 } else { yyv13 := &x.AllocIndex yym14 := z.DecBinary() _ = yym14 if false { } else { *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PlanResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeUpdate = nil } else { yyv16 := &x.NodeUpdate yym17 := z.DecBinary() _ = yym17 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv16), d) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NodeAllocation = nil } else { yyv18 := &x.NodeAllocation yym19 := z.DecBinary() _ = yym19 if false { } else { h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv18), d) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { if 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DeploymentUpdates = nil } else { yyv21 := &x.DeploymentUpdates yym22 := z.DecBinary() _ = yym22 if false { } else { h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv21), d) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.RefreshIndex = 0 } else { yyv23 := &x.RefreshIndex yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.AllocIndex = 0 } else { yyv25 := &x.AllocIndex yym26 := z.DecBinary() _ = yym26 if false { } else { *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) } } for { yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj15-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *PlanAnnotations) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.DesiredTGUpdates == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DesiredTGUpdates")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.DesiredTGUpdates == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *PlanAnnotations) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *PlanAnnotations) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "DesiredTGUpdates": if r.TryDecodeAsNil() { x.DesiredTGUpdates = nil } else { yyv4 := &x.DesiredTGUpdates yym5 := z.DecBinary() _ = yym5 if false { } else { h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(yyv4), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *PlanAnnotations) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DesiredTGUpdates = nil } else { yyv7 := &x.DesiredTGUpdates yym8 := z.DecBinary() _ = yym8 if false { } else { h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(yyv7), d) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *DesiredUpdates) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [7]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(7) } else { yynn2 = 7 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeUint(uint64(x.Ignore)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Ignore")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeUint(uint64(x.Ignore)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeUint(uint64(x.Place)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Place")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeUint(uint64(x.Place)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeUint(uint64(x.Migrate)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Migrate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeUint(uint64(x.Migrate)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeUint(uint64(x.Stop)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Stop")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeUint(uint64(x.Stop)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym16 := z.EncBinary() _ = yym16 if false { } else { r.EncodeUint(uint64(x.InPlaceUpdate)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("InPlaceUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym17 := z.EncBinary() _ = yym17 if false { } else { r.EncodeUint(uint64(x.InPlaceUpdate)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeUint(uint64(x.DestructiveUpdate)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("DestructiveUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeUint(uint64(x.DestructiveUpdate)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeUint(uint64(x.Canary)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Canary")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeUint(uint64(x.Canary)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *DesiredUpdates) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *DesiredUpdates) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Ignore": if r.TryDecodeAsNil() { x.Ignore = 0 } else { yyv4 := &x.Ignore yym5 := z.DecBinary() _ = yym5 if false { } else { *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) } } case "Place": if r.TryDecodeAsNil() { x.Place = 0 } else { yyv6 := &x.Place yym7 := z.DecBinary() _ = yym7 if false { } else { *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) } } case "Migrate": if r.TryDecodeAsNil() { x.Migrate = 0 } else { yyv8 := &x.Migrate yym9 := z.DecBinary() _ = yym9 if false { } else { *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) } } case "Stop": if r.TryDecodeAsNil() { x.Stop = 0 } else { yyv10 := &x.Stop yym11 := z.DecBinary() _ = yym11 if false { } else { *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) } } case "InPlaceUpdate": if r.TryDecodeAsNil() { x.InPlaceUpdate = 0 } else { yyv12 := &x.InPlaceUpdate yym13 := z.DecBinary() _ = yym13 if false { } else { *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) } } case "DestructiveUpdate": if r.TryDecodeAsNil() { x.DestructiveUpdate = 0 } else { yyv14 := &x.DestructiveUpdate yym15 := z.DecBinary() _ = yym15 if false { } else { *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) } } case "Canary": if r.TryDecodeAsNil() { x.Canary = 0 } else { yyv16 := &x.Canary yym17 := z.DecBinary() _ = yym17 if false { } else { *((*uint64)(yyv16)) = uint64(r.DecodeUint(64)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *DesiredUpdates) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Ignore = 0 } else { yyv19 := &x.Ignore yym20 := z.DecBinary() _ = yym20 if false { } else { *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Place = 0 } else { yyv21 := &x.Place yym22 := z.DecBinary() _ = yym22 if false { } else { *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Migrate = 0 } else { yyv23 := &x.Migrate yym24 := z.DecBinary() _ = yym24 if false { } else { *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Stop = 0 } else { yyv25 := &x.Stop yym26 := z.DecBinary() _ = yym26 if false { } else { *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.InPlaceUpdate = 0 } else { yyv27 := &x.InPlaceUpdate yym28 := z.DecBinary() _ = yym28 if false { } else { *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.DestructiveUpdate = 0 } else { yyv29 := &x.DestructiveUpdate yym30 := z.DecBinary() _ = yym30 if false { } else { *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) } } yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Canary = 0 } else { yyv31 := &x.Canary yym32 := z.DecBinary() _ = yym32 if false { } else { *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) } } for { yyj18++ if yyhl18 { yyb18 = yyj18 > l } else { yyb18 = r.CheckBreak() } if yyb18 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj18-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *KeyringResponse) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [3]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(3) } else { yynn2 = 3 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Messages == nil { r.EncodeNil() } else { yym4 := z.EncBinary() _ = yym4 if false { } else { z.F.EncMapStringStringV(x.Messages, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Messages")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Messages == nil { r.EncodeNil() } else { yym5 := z.EncBinary() _ = yym5 if false { } else { z.F.EncMapStringStringV(x.Messages, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if x.Keys == nil { r.EncodeNil() } else { yym7 := z.EncBinary() _ = yym7 if false { } else { z.F.EncMapStringIntV(x.Keys, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Keys")) z.EncSendContainerState(codecSelfer_containerMapValue5247) if x.Keys == nil { r.EncodeNil() } else { yym8 := z.EncBinary() _ = yym8 if false { } else { z.F.EncMapStringIntV(x.Keys, false, e) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeInt(int64(x.NumNodes)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("NumNodes")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeInt(int64(x.NumNodes)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *KeyringResponse) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *KeyringResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Messages": if r.TryDecodeAsNil() { x.Messages = nil } else { yyv4 := &x.Messages yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecMapStringStringX(yyv4, false, d) } } case "Keys": if r.TryDecodeAsNil() { x.Keys = nil } else { yyv6 := &x.Keys yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecMapStringIntX(yyv6, false, d) } } case "NumNodes": if r.TryDecodeAsNil() { x.NumNodes = 0 } else { yyv8 := &x.NumNodes yym9 := z.DecBinary() _ = yym9 if false { } else { *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize5247)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *KeyringResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Messages = nil } else { yyv11 := &x.Messages yym12 := z.DecBinary() _ = yym12 if false { } else { z.F.DecMapStringStringX(yyv11, false, d) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Keys = nil } else { yyv13 := &x.Keys yym14 := z.DecBinary() _ = yym14 if false { } else { z.F.DecMapStringIntX(yyv13, false, d) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.NumNodes = 0 } else { yyv15 := &x.NumNodes yym16 := z.DecBinary() _ = yym16 if false { } else { *((*int)(yyv15)) = int(r.DecodeInt(codecSelferBitsize5247)) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj10-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *KeyringRequest) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [1]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(1) } else { yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Key")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Key)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *KeyringRequest) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *KeyringRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Key": if r.TryDecodeAsNil() { x.Key = "" } else { yyv4 := &x.Key yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *KeyringRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Key = "" } else { yyv7 := &x.Key yym8 := z.DecBinary() _ = yym8 if false { } else { *((*string)(yyv7)) = r.DecodeString() } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj6-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x *RecoverableError) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [2]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(2) } else { yynn2 = 2 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Err)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Err")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(x.Err)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeBool(bool(x.Recoverable)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey5247) r.EncodeString(codecSelferC_UTF85247, string("Recoverable")) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeBool(bool(x.Recoverable)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } else { z.EncSendContainerState(codecSelfer_containerMapEnd5247) } } } } func (x *RecoverableError) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1 := z.DecBinary() _ = yym1 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5247 { yyl2 := r.ReadMapStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd5247) } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5247 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr5247) } } } func (x *RecoverableError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3Slc var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey5247) yys3Slc = r.DecodeBytes(yys3Slc, true, true) yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue5247) switch yys3 { case "Err": if r.TryDecodeAsNil() { x.Err = "" } else { yyv4 := &x.Err yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } case "Recoverable": if r.TryDecodeAsNil() { x.Recoverable = false } else { yyv6 := &x.Recoverable yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x *RecoverableError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5247 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 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Err = "" } else { yyv9 := &x.Err yym10 := z.DecBinary() _ = yym10 if false { } else { *((*string)(yyv9)) = r.DecodeString() } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { z.DecSendContainerState(codecSelfer_containerArrayEnd5247) return } z.DecSendContainerState(codecSelfer_containerArrayElem5247) if r.TryDecodeAsNil() { x.Recoverable = false } else { yyv11 := &x.Recoverable yym12 := z.DecBinary() _ = yym12 if false { } else { *((*bool)(yyv11)) = r.DecodeBool() } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } z.DecSendContainerState(codecSelfer_containerArrayElem5247) z.DecStructFieldNotFound(yyj8-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) encMapContextSlicestring(v map[Context][]string, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yyk1.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yym3 := z.EncBinary() _ = yym3 if false { } else { z.F.EncSliceStringV(yyv1, false, e) } } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapContextSlicestring(v *map[Context][]string, d *codec1978.Decoder) { var h codecSelfer5247 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 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yyv2.CodecDecodeSelf(d) } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = nil } else { yyv3 := &yymv1 yym4 := z.DecBinary() _ = yym4 if false { } else { z.F.DecSliceStringX(yyv3, false, d) } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yyv5.CodecDecodeSelf(d) } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = nil } else { yyv6 := &yymv1 yym7 := z.DecBinary() _ = yym7 if false { } else { z.F.DecSliceStringX(yyv6, false, d) } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encSlicestring(v []string, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyv1)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicestring(v *[]string, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]string, yyrl1) } } else { yyv1 = make([]string, yyrl1) } yyc1 = true yyrr1 = len(yyv1) } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { yyv1[yyj1] = "" } else { yyv2 := &yyv1[yyj1] yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, "") yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { yyv1[yyj1] = "" } else { yyv4 := &yyv1[yyj1] yym5 := z.DecBinary() _ = yym5 if false { } else { *((*string)(yyv4)) = r.DecodeString() } } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, "") // var yyz1 string yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { yyv1[yyj1] = "" } else { yyv6 := &yyv1[yyj1] yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []string{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encMapContextbool(v map[Context]bool, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yyk1.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue5247) yym3 := z.EncBinary() _ = yym3 if false { } else { r.EncodeBool(bool(yyv1)) } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapContextbool(v *map[Context]bool, d *codec1978.Decoder) { var h codecSelfer5247 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 bool if yybh1.MapValueReset { } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yyv2.CodecDecodeSelf(d) } if yymg1 { yymv1 = yyv1[yymk1] } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = false } else { yyv3 := &yymv1 yym4 := z.DecBinary() _ = yym4 if false { } else { *((*bool)(yyv3)) = r.DecodeBool() } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yyv5.CodecDecodeSelf(d) } if yymg1 { yymv1 = yyv1[yymk1] } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = false } else { yyv6 := &yymv1 yym7 := z.DecBinary() _ = yym7 if false { } else { *((*bool)(yyv6)) = r.DecodeBool() } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encSlicePtrtoEvaluation(v []*Evaluation, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoEvaluation(v *[]*Evaluation, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Evaluation, yyrl1) } } else { yyv1 = make([]*Evaluation, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Evaluation{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Evaluation) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Evaluation{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Evaluation) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Evaluation yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Evaluation{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Evaluation) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Evaluation{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoAllocation(v []*Allocation, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoAllocation(v *[]*Allocation, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Allocation, yyrl1) } } else { yyv1 = make([]*Allocation, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Allocation{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Allocation) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Allocation{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Allocation) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Allocation yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Allocation{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Allocation) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Allocation{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoDeploymentStatusUpdate(v []*DeploymentStatusUpdate, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoDeploymentStatusUpdate(v *[]*DeploymentStatusUpdate, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*DeploymentStatusUpdate, yyrl1) } } else { yyv1 = make([]*DeploymentStatusUpdate, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = DeploymentStatusUpdate{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(DeploymentStatusUpdate) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = DeploymentStatusUpdate{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(DeploymentStatusUpdate) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *DeploymentStatusUpdate yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = DeploymentStatusUpdate{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(DeploymentStatusUpdate) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*DeploymentStatusUpdate{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoServerMember(v []*ServerMember, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoServerMember(v *[]*ServerMember, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*ServerMember, yyrl1) } } else { yyv1 = make([]*ServerMember, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = ServerMember{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ServerMember) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = ServerMember{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ServerMember) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *ServerMember yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = ServerMember{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ServerMember) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*ServerMember{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encnet_IP(v net.IP, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeStringBytes(codecSelferC_RAW5247, []byte(v)) } func (x codecSelfer5247) decnet_IP(v *net.IP, d *codec1978.Decoder) { var h codecSelfer5247 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r *v = r.DecodeBytes(*((*[]byte)(v)), false, false) } func (x codecSelfer5247) encSlicePtrtoVaultAccessor(v []*VaultAccessor, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoVaultAccessor(v *[]*VaultAccessor, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*VaultAccessor, yyrl1) } } else { yyv1 = make([]*VaultAccessor, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = VaultAccessor{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(VaultAccessor) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = VaultAccessor{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(VaultAccessor) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *VaultAccessor yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = VaultAccessor{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(VaultAccessor) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*VaultAccessor{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoNodeServerInfo(v []*NodeServerInfo, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoNodeServerInfo(v *[]*NodeServerInfo, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*NodeServerInfo, yyrl1) } } else { yyv1 = make([]*NodeServerInfo, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NodeServerInfo{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NodeServerInfo) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NodeServerInfo{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NodeServerInfo) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *NodeServerInfo yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NodeServerInfo{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NodeServerInfo) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*NodeServerInfo{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoNodeListStub(v []*NodeListStub, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoNodeListStub(v *[]*NodeListStub, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*NodeListStub, yyrl1) } } else { yyv1 = make([]*NodeListStub, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NodeListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NodeListStub) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NodeListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NodeListStub) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *NodeListStub yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NodeListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NodeListStub) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*NodeListStub{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoJobListStub(v []*JobListStub, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoJobListStub(v *[]*JobListStub, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*JobListStub, yyrl1) } } else { yyv1 = make([]*JobListStub, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = JobListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(JobListStub) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = JobListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(JobListStub) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *JobListStub yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = JobListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(JobListStub) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*JobListStub{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoJob(v []*Job, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoJob(v *[]*Job, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Job, yyrl1) } } else { yyv1 = make([]*Job, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Job{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Job) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Job{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Job) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Job yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Job{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Job) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Job{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoJobDiff(v []*JobDiff, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yym2 := z.EncBinary() _ = yym2 if false { } else if z.HasExtensions() && z.EncExt(yyv1) { } else { z.EncFallback(yyv1) } } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoJobDiff(v *[]*JobDiff, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*JobDiff, yyrl1) } } else { yyv1 = make([]*JobDiff, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = JobDiff{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(JobDiff) } yyw2 := yyv1[yyj1] yym3 := z.DecBinary() _ = yym3 if false { } else if z.HasExtensions() && z.DecExt(yyw2) { } else { z.DecFallback(yyw2, false) } } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = JobDiff{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(JobDiff) } yyw4 := yyv1[yyj1] yym5 := z.DecBinary() _ = yym5 if false { } else if z.HasExtensions() && z.DecExt(yyw4) { } else { z.DecFallback(yyw4, false) } } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *JobDiff yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = JobDiff{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(JobDiff) } yyw6 := yyv1[yyj1] yym7 := z.DecBinary() _ = yym7 if false { } else if z.HasExtensions() && z.DecExt(yyw6) { } else { z.DecFallback(yyw6, false) } } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*JobDiff{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encMapstringPtrtoAllocMetric(v map[string]*AllocMetric, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringPtrtoAllocMetric(v *map[string]*AllocMetric, d *codec1978.Decoder) { var h codecSelfer5247 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, yyms1, yymok1 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = AllocMetric{} } } else { if yymv1 == nil { yymv1 = new(AllocMetric) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = AllocMetric{} } } else { if yymv1 == nil { yymv1 = new(AllocMetric) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encSlicePtrtoAllocListStub(v []*AllocListStub, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoAllocListStub(v *[]*AllocListStub, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*AllocListStub, yyrl1) } } else { yyv1 = make([]*AllocListStub, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = AllocListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(AllocListStub) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = AllocListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(AllocListStub) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *AllocListStub yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = AllocListStub{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(AllocListStub) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*AllocListStub{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoDeployment(v []*Deployment, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoDeployment(v *[]*Deployment, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Deployment, yyrl1) } } else { yyv1 = make([]*Deployment, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Deployment{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Deployment) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Deployment{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Deployment) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Deployment yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Deployment{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Deployment) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Deployment{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encNetworks(v Networks, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decNetworks(v *Networks, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*NetworkResource, yyrl1) } } else { yyv1 = make([]*NetworkResource, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NetworkResource{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NetworkResource) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NetworkResource{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NetworkResource) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *NetworkResource yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = NetworkResource{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(NetworkResource) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*NetworkResource{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePort(v []Port, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) yy2 := &yyv1 yy2.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePort(v *[]Port, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]Port, yyrl1) } } else { yyv1 = make([]Port, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { yyv1[yyj1] = Port{} } else { yyv2 := &yyv1[yyj1] yyv2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, Port{}) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { yyv1[yyj1] = Port{} } else { yyv3 := &yyv1[yyj1] yyv3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, Port{}) // var yyz1 Port yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { yyv1[yyj1] = Port{} } else { yyv4 := &yyv1[yyj1] yyv4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []Port{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoConstraint(v []*Constraint, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoConstraint(v *[]*Constraint, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Constraint, yyrl1) } } else { yyv1 = make([]*Constraint, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Constraint{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Constraint) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Constraint{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Constraint) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Constraint yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Constraint{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Constraint) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Constraint{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoTaskGroup(v []*TaskGroup, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoTaskGroup(v *[]*TaskGroup, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*TaskGroup, yyrl1) } } else { yyv1 = make([]*TaskGroup, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskGroup{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskGroup) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskGroup{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskGroup) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *TaskGroup yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskGroup{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskGroup) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*TaskGroup{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encMapstringTaskGroupSummary(v map[string]TaskGroupSummary, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) yy3 := &yyv1 yy3.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringTaskGroupSummary(v *map[string]TaskGroupSummary, d *codec1978.Decoder) { var h codecSelfer5247 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 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = TaskGroupSummary{} } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = TaskGroupSummary{} } else { yyv4 := &yymv1 yyv4.CodecDecodeSelf(d) } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = TaskGroupSummary{} } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = TaskGroupSummary{} } else { yyv7 := &yymv1 yyv7.CodecDecodeSelf(d) } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encSlicePtrtoTask(v []*Task, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoTask(v *[]*Task, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Task, yyrl1) } } else { yyv1 = make([]*Task, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Task{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Task) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Task{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Task) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Task yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Task{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Task) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Task{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yym3 := z.EncBinary() _ = yym3 if false { } else { z.F.EncSliceStringV(yyv1, false, e) } } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { var h codecSelfer5247 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 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = nil } else { yyv4 := &yymv1 yym5 := z.DecBinary() _ = yym5 if false { } else { z.F.DecSliceStringX(yyv4, false, d) } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv6 := &yymk1 yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = nil } else { yyv8 := &yymv1 yym9 := z.DecBinary() _ = yym9 if false { } else { z.F.DecSliceStringX(yyv8, false, d) } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encSlicePtrtoServiceCheck(v []*ServiceCheck, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoServiceCheck(v *[]*ServiceCheck, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*ServiceCheck, yyrl1) } } else { yyv1 = make([]*ServiceCheck, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = ServiceCheck{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ServiceCheck) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = ServiceCheck{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ServiceCheck) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *ServiceCheck yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = ServiceCheck{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ServiceCheck) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*ServiceCheck{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoService(v []*Service, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoService(v *[]*Service, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Service, yyrl1) } } else { yyv1 = make([]*Service, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Service{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Service) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Service{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Service) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Service yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Service{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Service) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Service{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoTemplate(v []*Template, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoTemplate(v *[]*Template, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Template, yyrl1) } } else { yyv1 = make([]*Template, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Template{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Template) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Template{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Template) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *Template yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = Template{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Template) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*Template{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoTaskArtifact(v []*TaskArtifact, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoTaskArtifact(v *[]*TaskArtifact, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*TaskArtifact, yyrl1) } } else { yyv1 = make([]*TaskArtifact, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskArtifact{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskArtifact) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskArtifact{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskArtifact) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *TaskArtifact yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskArtifact{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskArtifact) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*TaskArtifact{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encSlicePtrtoTaskEvent(v []*TaskEvent, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerArrayEnd5247) } func (x codecSelfer5247) decSlicePtrtoTaskEvent(v *[]*TaskEvent, d *codec1978.Decoder) { var h codecSelfer5247 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 if yyl1 > 0 { var yyrr1, yyrl1 int var yyrt1 bool _, _ = yyrl1, yyrt1 yyrr1 = yyl1 // len(yyv1) if yyl1 > cap(yyv1) { yyrg1 := len(yyv1) > 0 yyv21 := yyv1 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*TaskEvent, yyrl1) } } else { yyv1 = make([]*TaskEvent, yyrl1) } yyc1 = true yyrr1 = len(yyv1) if yyrg1 { copy(yyv1, yyv21) } } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } yyj1 := 0 for ; yyj1 < yyrr1; yyj1++ { yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskEvent{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskEvent) } yyw2 := yyv1[yyj1] yyw2.CodecDecodeSelf(d) } } if yyrt1 { for ; yyj1 < yyl1; yyj1++ { yyv1 = append(yyv1, nil) yyh1.ElemContainerState(yyj1) if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskEvent{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskEvent) } yyw3 := yyv1[yyj1] yyw3.CodecDecodeSelf(d) } } } } else { yyj1 := 0 for ; !r.CheckBreak(); yyj1++ { if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) // var yyz1 *TaskEvent yyc1 = true } yyh1.ElemContainerState(yyj1) if yyj1 < len(yyv1) { if r.TryDecodeAsNil() { if yyv1[yyj1] != nil { *yyv1[yyj1] = TaskEvent{} } } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(TaskEvent) } yyw4 := yyv1[yyj1] yyw4.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = []*TaskEvent{} yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5247) encMapstringPtrtoDeploymentState(v map[string]*DeploymentState, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringPtrtoDeploymentState(v *map[string]*DeploymentState, d *codec1978.Decoder) { var h codecSelfer5247 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, yyms1, yymok1 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = DeploymentState{} } } else { if yymv1 == nil { yymv1 = new(DeploymentState) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = DeploymentState{} } } else { if yymv1 == nil { yymv1 = new(DeploymentState) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encMapstringPtrtoResources(v map[string]*Resources, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringPtrtoResources(v *map[string]*Resources, d *codec1978.Decoder) { var h codecSelfer5247 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, yyms1, yymok1 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = Resources{} } } else { if yymv1 == nil { yymv1 = new(Resources) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = Resources{} } } else { if yymv1 == nil { yymv1 = new(Resources) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encMapstringPtrtoTaskState(v map[string]*TaskState, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringPtrtoTaskState(v *map[string]*TaskState, d *codec1978.Decoder) { var h codecSelfer5247 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, yyms1, yymok1 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = TaskState{} } } else { if yymv1 == nil { yymv1 = new(TaskState) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = TaskState{} } } else { if yymv1 == nil { yymv1 = new(TaskState) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encMapstringSlicePtrtoAllocation(v map[string][]*Allocation, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yym3 := z.EncBinary() _ = yym3 if false { } else { h.encSlicePtrtoAllocation(([]*Allocation)(yyv1), e) } } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringSlicePtrtoAllocation(v *map[string][]*Allocation, d *codec1978.Decoder) { var h codecSelfer5247 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 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = nil } else { yyv4 := &yymv1 yym5 := z.DecBinary() _ = yym5 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv6 := &yymk1 yym7 := z.DecBinary() _ = yym7 if false { } else { *((*string)(yyv6)) = r.DecodeString() } } if yymg1 { yymv1 = yyv1[yymk1] } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { yymv1 = nil } else { yyv8 := &yymv1 yym9 := z.DecBinary() _ = yym9 if false { } else { h.decSlicePtrtoAllocation((*[]*Allocation)(yyv8), d) } } if yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) encMapstringPtrtoDesiredUpdates(v map[string]*DesiredUpdates, e *codec1978.Encoder) { var h codecSelfer5247 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk1, yyv1 := range v { z.EncSendContainerState(codecSelfer_containerMapKey5247) yym2 := z.EncBinary() _ = yym2 if false { } else { r.EncodeString(codecSelferC_UTF85247, string(yyk1)) } z.EncSendContainerState(codecSelfer_containerMapValue5247) if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd5247) } func (x codecSelfer5247) decMapstringPtrtoDesiredUpdates(v *map[string]*DesiredUpdates, d *codec1978.Decoder) { var h codecSelfer5247 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, yyms1, yymok1 bool if yybh1.MapValueReset { yymg1 = true } if yyl1 > 0 { for yyj1 := 0; yyj1 < yyl1; yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv2 := &yymk1 yym3 := z.DecBinary() _ = yym3 if false { } else { *((*string)(yyv2)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = DesiredUpdates{} } } else { if yymv1 == nil { yymv1 = new(DesiredUpdates) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } else if yyl1 < 0 { for yyj1 := 0; !r.CheckBreak(); yyj1++ { z.DecSendContainerState(codecSelfer_containerMapKey5247) if r.TryDecodeAsNil() { yymk1 = "" } else { yyv5 := &yymk1 yym6 := z.DecBinary() _ = yym6 if false { } else { *((*string)(yyv5)) = r.DecodeString() } } yyms1 = true if yymg1 { yymv1, yymok1 = yyv1[yymk1] if yymok1 { yyms1 = false } } else { yymv1 = nil } z.DecSendContainerState(codecSelfer_containerMapValue5247) if r.TryDecodeAsNil() { if yymv1 != nil { *yymv1 = DesiredUpdates{} } } else { if yymv1 == nil { yymv1 = new(DesiredUpdates) } yymv1.CodecDecodeSelf(d) } if yyms1 && yyv1 != nil { yyv1[yymk1] = yymv1 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd5247) }